/* NL Digital Gift Credits
   Shared styles for:
   - Buyer gift page ([nl_multi_digital_gifts])
   - Recipient access page ([nl_gift_access])
*/

/* ---------------------------------------------
   BUYER GIFT PAGE (was inline <style> in shortcode_gift_page)
--------------------------------------------- */
.nl-gift-wrapper {
    max-width: 720px;
    margin: 32px auto;
    padding: 24px 24px 28px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15, 35, 52, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}

.nl-gift-wrapper h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1b2434;
}

.nl-gift-wrapper p {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 10px;
}

/* Notices */
.nl-gift-notices {
    max-width: 720px;
    margin: 0 auto 16px;
    padding: 12px 14px;
    background: #fff7e5;
    border: 1px solid #ffe1a8;
    border-radius: 8px;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.nl-gift-success {
    max-width: 720px;
    margin: 0 auto 16px;
    padding: 16px 18px;
    background: #e6ffed;
    border: 1px solid #b7f5c2;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------------------------------------------
   TABLE RESET, eliminates WP and theme overrides
--------------------------------------------- */
.nl-gift-table,
.nl-gift-table * {
    all: unset;
    display: revert;
    box-sizing: border-box;
}

/* Table base layout */
.nl-gift-table-wrapper {
    margin-top: 16px;
    border-radius: 12px;
    border: 1px solid #edf0f5;
    overflow: hidden;
    background: #ffffff;
}

.nl-gift-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

/* Table header */
.nl-gift-table thead {
    background: #f7fafc;
}

.nl-gift-table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #718096;
    padding: 10px 12px;
    border-bottom: 1px solid #edf0f5;
}

/* Table body */
.nl-gift-table tbody tr {
    border-bottom: 1px solid #edf0f5;
}

.nl-gift-table tbody tr:last-child {
    border-bottom: none;
}

.nl-gift-table tbody tr:nth-child(even) {
    background: #fafbff;
}

.nl-gift-table tbody tr:hover {
    background: #f3f6ff;
}

.nl-gift-table td {
    padding: 10px 12px;
    color: #1b2434;
}

/* Email + status formatting */
.nl-gift-email {
    font-weight: 600;
    color: #1b2434;
}

.nl-gift-status {
    font-size: 11px;
    color: #718096;
}

.nl-gift-table a {
    color: #2c67b6;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.nl-gift-table a:hover {
    text-decoration: none;
    pointer: touch;
}

/* Hard override for WP table header border on gift table only */
.nl-gift-table caption + thead tr:first-child td,
.nl-gift-table caption + thead tr:first-child th,
.nl-gift-table colgroup + thead tr:first-child td,
.nl-gift-table colgroup + thead tr:first-child th,
.nl-gift-table thead:first-child tr:first-child td,
.nl-gift-table thead:first-child tr:first-child th {
    -webkit-border-before: none !important;
    border-block-start: none !important;
    border-top: none !important;
}

/* ---------------------------------------------
   DASHBOARD STYLE STATS
--------------------------------------------- */
.nl-gift-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.nl-gift-stat {
    flex: 1 1 0;
    min-width: 160px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #edf0f5;
    padding: 14px 16px;
}

.nl-gift-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #718096;
    margin-bottom: 4px;
}

.nl-gift-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1b2434;
}

/* ---------------------------------------------
   EMAIL ENTRY FORM (buyer page)
--------------------------------------------- */
.nl-gift-form {
    margin-top: 24px;
}

.nl-gift-form label {
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #718096;
}

.nl-gift-form input[type="email"],
.nl-gift-form input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #e2e5ec;
    box-sizing: border-box;
    font-size: 14px;
    background: #ffffff;
    outline: none;
}

.nl-gift-form input[type="email"]:focus,
.nl-gift-form input[type="text"]:focus {
    border-color: #285ad6;
    box-shadow: 0 0 0 1px rgba(40, 90, 214, 0.12);
}

.nl-gift-form p {
    margin-bottom: 14px;
}

.nl-gift-form .button,
.nl-gift-form button.button.button-primary {
    width: 100%;
    display: inline-block;
    padding: 13px 18px;
    border-radius: 6px;
    border: none;
    background-color: #2c67b6;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.nl-gift-form .button:hover,
.nl-gift-form button.button.button-primary:hover {
    color: #c2dce4;
}

/* Spacing fix for the label/input structure */
.nl-gift-email-fields label {
    display: block;
    margin-bottom: 8px;
}

.nl-gift-email-fields input[type="email"] {
    margin-top: 6px !important;
    display: block;
}

/* Accessed column styling */
.nl-gift-accessed-cell {
    text-align: left;
}

.nl-gift-accessed-yes {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e6f9ed;
    color: #15803d;
    font-weight: 600;
    font-size: 12px;
}

.nl-gift-accessed-no {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fef3f2;
    color: #b91c1c;
    font-weight: 600;
    font-size: 12px;
}

/* ---------------------------------------------
   DOWNLOAD LINKS (legacy list styling you had)
--------------------------------------------- */
.nl-download-links {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e2e2e2;
    background: #fafafa;
}

.nl-download-links ul {
    margin: 0;
    padding-left: 18px;
}

.nl-download-links li {
    margin-bottom: 6px;
}

.nl-download-links .nl-download-link {
    text-decoration: none;
    font-weight: 600;
}

.nl-download-links .nl-download-link:hover {
    text-decoration: underline;
}

/* ---------------------------------------------
   RECIPIENT ACCESS PAGE (was $shared_css in shortcode_gift_access)
--------------------------------------------- */
.nl-access-wrapper {
    max-width: 720px;
    margin: 32px auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}

.nl-access-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15, 35, 52, 0.06);
    padding: 24px 24px 28px;
}

.nl-access-card h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1b2434;
}

.nl-access-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #1b2434;
}

.nl-access-card p {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 10px;
}

.nl-access-note {
    font-size: 13px;
    color: #718096;
    margin: 8px 0 12px;
}

/* Email form (recipient page) */
.nl-access-form {
    margin-top: 18px;
}

.nl-access-form .nl-field-row {
    margin-bottom: 14px;
}

.nl-access-form label {
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #718096;
}

.nl-access-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #e2e5ec;
    box-sizing: border-box;
    font-size: 14px;
    background: #ffffff;
    outline: none;
}

.nl-access-form input[type="email"]:focus {
    border-color: #285ad6;
    box-shadow: 0 0 0 1px rgba(40, 90, 214, 0.12);
}

.nl-access-form button.button.button-primary {
    width: 100%;
    display: inline-block;
    padding: 13px 18px;
    border-radius: 6px;
    border: none;
    background-color: #2c67b6;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.nl-access-form button.button.button-primary:hover {
    color: #c2dce4;
}

/* Download buttons (recipient page) */
.nl-download-card {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 10px;
    border: 1px solid #e2e2e2;
    background: #fafafa;
}

.nl-download-buttons {
    margin-top: 12px;
}

a.nl-download-button {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 6px;
    background-color: #2c67b6;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

a.nl-download-button + a.nl-download-button {
    margin-left: 8px;
}

@media (max-width: 600px) {
    a.nl-download-button {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }

    .nl-download-button + .nl-download-button {
        margin-left: 0;
    }
}
