#kt-otp-purchase .kt-otp-field > span,
#kt-otp-purchase .kt-otp-checkbox > span {
    color: #000;
}

.kt-otp-card {
    max-width: 420px;
    margin: 1.5rem auto;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.kt-otp-scope.kt-otp-card .kt-otp-title,
.kt-otp-scope.kt-otp-card .kt-otp-download-title,
.kt-otp-scope.kt-otp-card .kt-otp-lead,
.kt-otp-scope.kt-otp-card .kt-otp-download-lead,
.kt-otp-scope.kt-otp-card .kt-otp-download-expiry,
.kt-otp-scope.kt-otp-card .kt-otp-details dt,
.kt-otp-scope.kt-otp-card .kt-otp-details dd,
.kt-otp-scope.kt-otp-card .kt-otp-expires-local,
.kt-otp-scope.kt-otp-card .kt-otp-highlight .kt-otp-code {
    color: var(--kt-otp-text, #1a1a1a);
}

/* Theme heading/link rules often wash out h2/h3 inside .entry-content */
.entry-content .kt-otp-scope.kt-otp-card .kt-otp-title,
.entry-content .kt-otp-scope.kt-otp-card .kt-otp-download-title,
.site-content .kt-otp-scope.kt-otp-card .kt-otp-title,
.site-content .kt-otp-scope.kt-otp-card .kt-otp-download-title {
    color: var(--kt-otp-text, #1a1a1a) !important;
}

.kt-otp-title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
}

.kt-otp-lead {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
}

.kt-otp-field {
    display: block;
    margin-bottom: 1rem;
}

.kt-otp-field span {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #000;
}

.kt-otp-field small {
    display: block;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.78rem;
}

.kt-otp-field input,
.kt-otp-field select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
}

.kt-otp-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.kt-otp-checkbox input {
    width: auto;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.kt-otp-checkbox span {
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #000;
}

.kt-otp-button {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--kt-otp-btn-bg, #2563eb);
    color: var(--kt-otp-btn-text, #fff);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.kt-otp-scope button.kt-otp-button:not(:disabled):hover,
.kt-otp-scope button.kt-otp-button:not(:disabled):focus-visible,
.kt-otp-scope input.kt-otp-button[type="submit"]:not(:disabled):hover {
    color: var(--kt-otp-btn-hover-text, var(--kt-otp-btn-text, #fff));
    background-color: var(--kt-otp-btn-hover-bg, #1d4ed8);
}

.kt-otp-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.kt-otp-message {
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.kt-otp-message.is-error {
    background: #fef2f2;
    color: #b91c1c;
}

.kt-otp-helper,
.kt-otp-reseller-balance {
    margin: 0 0 1rem;
    padding: 0.8rem;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    background: #f0f9ff;
    color: #0f172a;
}

.kt-otp-helper p {
    margin: 0.35rem 0 0.75rem;
    font-size: 0.86rem;
}

.kt-otp-reseller-balance {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
    font-weight: 700;
}

.kt-otp-price {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: -0.35rem 0 1rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
}

.kt-otp-price[hidden] {
    display: none;
}

.kt-otp-price strong {
    font-size: 1.05rem;
}

.kt-otp-notice {
    padding: 1rem;
    border-radius: 8px;
    background: #f8fafc;
}

.kt-otp-notice.kt-otp-error {
    background: #fef2f2;
    color: #b91c1c;
}

.kt-otp-details {
    margin: 0;
}

.kt-otp-details > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.kt-otp-details dt {
    margin: 0;
    font-weight: 600;
    opacity: 0.75;
}

.kt-otp-details dd {
    margin: 0;
    text-align: right;
}

.kt-otp-highlight .kt-otp-code {
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    font-weight: 700;
}

.kt-otp-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.kt-otp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: fixed;
}

.kt-otp-table th,
.kt-otp-table td {
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.kt-otp-um-tab {
    padding: 0.5rem 0;
}

.kt-otp-my-orders {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.kt-otp-table-wrap {
    overflow-x: visible;
}

.kt-otp-actions {
    margin: 1rem 0;
}

.kt-otp-button-inline {
    display: inline-block;
    width: auto;
    text-align: center;
    text-decoration: none;
}

/* Success-page link buttons — use Site Settings colors via --kt-otp-* variables */
.kt-otp-scope a.kt-otp-button,
.kt-otp-scope a.kt-otp-button:visited {
    background-color: var(--kt-otp-btn-bg, #2563eb);
    color: var(--kt-otp-btn-text, var(--kt-otp-link, #fff));
    text-decoration: none;
}

.kt-otp-scope a.kt-otp-button:hover,
.kt-otp-scope a.kt-otp-button:focus-visible,
.kt-otp-scope a.kt-otp-button:active {
    background-color: var(--kt-otp-btn-hover-bg, #dc2626);
    color: var(--kt-otp-btn-hover-text, var(--kt-otp-btn-text, #fff));
    text-decoration: none;
}

.kt-otp-scope .kt-otp-button-secondary,
.kt-otp-scope a.kt-otp-button.kt-otp-button-secondary {
    background-color: var(--kt-otp-btn-bg, #475569);
}

.kt-otp-scope a.kt-otp-button.kt-otp-button-secondary:hover,
.kt-otp-scope a.kt-otp-button.kt-otp-button-secondary:focus-visible,
.kt-otp-scope a.kt-otp-button.kt-otp-button-secondary:active {
    background-color: var(--kt-otp-btn-hover-bg, #334155);
    color: var(--kt-otp-btn-hover-text, var(--kt-otp-btn-text, #fff));
}

.kt-otp-download {
    margin: 1.25rem 0 0;
    padding: 1rem;
    border-radius: 8px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
}

.kt-otp-download-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.kt-otp-download-lead {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}

.kt-otp-download-expiry {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

.kt-otp-expires-local {
    font-weight: 600;
}

.kt-otp-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.kt-otp-status-completed {
    background: #d1fae5;
    color: #065f46;
}

.kt-otp-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.kt-otp-status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.kt-otp-button-small {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    width: auto;
}

.kt-otp-download-cell {
    white-space: normal;
    vertical-align: top;
}

.kt-otp-download-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
}

.kt-otp-download-links .kt-otp-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    line-height: 1.35;
    hyphens: auto;
}

.kt-otp-download-until {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: #64748b;
    white-space: normal;
    max-width: none;
}

.kt-otp-download-expired-label {
    font-size: 0.85rem;
    color: #b91c1c;
    font-weight: 600;
}

.kt-otp-scope .kt-otp-table a.kt-otp-button.kt-otp-button-small {
    width: auto;
}
