/* ==========================================================================
   Texttify License Manager — My Account page styles
   ========================================================================== */

.txfy-licenses-wrap {
    margin-top: 1em;
}

.txfy-page-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 0.4em;
}

.txfy-page-description {
    color: #555;
    margin-bottom: 1.5em;
}

/* ------------------------------------------------------------------
   Table layout
------------------------------------------------------------------ */
.txfy-table {
    width: 100%;
    border-collapse: collapse;
}

.txfy-table th,
.txfy-table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}

/* ------------------------------------------------------------------
   License key display
------------------------------------------------------------------ */
.txfy-key-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.txfy-license-key {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85em;
    background: #f4f4f4;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 4px;
    letter-spacing: 0.06em;
    user-select: all;          /* click once to select all */
    cursor: text;
    word-break: break-all;
}

/* ------------------------------------------------------------------
   Copy button
------------------------------------------------------------------ */
.txfy-copy-btn {
    padding: 4px 14px !important;
    font-size: 0.8em !important;
    line-height: 1.6 !important;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.txfy-copy-btn.txfy-copied,
.txfy-copy-btn:disabled {
    background-color: #2ecc71 !important;
    border-color:     #27ae60 !important;
    color:            #fff    !important;
    cursor:           default;
}

/* ------------------------------------------------------------------
   Status badges
------------------------------------------------------------------ */
.txfy-status {
    display:       inline-block;
    padding:       3px 10px;
    border-radius: 12px;
    font-size:     0.8em;
    font-weight:   600;
    white-space:   nowrap;
}

.txfy-status--active   { background: #d4edda; color: #155724; }
.txfy-status--inactive { background: #fff3cd; color: #856404; }
.txfy-status--revoked  { background: #f8d7da; color: #721c24; }
.txfy-status--expired  { background: #e2e3e5; color: #383d41; }

/* ------------------------------------------------------------------
   Thank-you page section
------------------------------------------------------------------ */
.txfy-thankyou-licenses {
    margin: 2em 0;
    padding: 1.5em;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.txfy-thankyou-licenses h2 {
    margin-top: 0;
}

/* ------------------------------------------------------------------
   Help text
------------------------------------------------------------------ */
.txfy-help-text {
    margin-top: 1.5em;
    font-size: 0.9em;
    color: #666;
}

/* ------------------------------------------------------------------
   Responsive: stack columns on small screens
------------------------------------------------------------------ */
@media ( max-width: 640px ) {
    .txfy-key-cell {
        flex-direction: column;
        align-items: flex-start;
    }

    .txfy-license-key {
        font-size: 0.75em;
    }

    .txfy-table thead {
        display: none;
    }

    .txfy-table tr {
        display:       block;
        margin-bottom: 1em;
        border:        1px solid #ddd;
        border-radius: 4px;
        padding:       0.5em;
    }

    .txfy-table td {
        display:     block;
        text-align:  left;
        padding:     6px 8px;
    }

    .txfy-table td::before {
        content:     attr( data-title ) ": ";
        font-weight: 600;
        display:     inline;
    }
}
