/**
 * Sync.Land Shopping Cart Styles - Dark Mode
 */

/* ============================================================================
   CSS Variables - Dark Theme
   ============================================================================ */
:root {
    --fml-primary: #E7565A;
    --fml-primary-dark: #ff6b6f;
    --fml-primary-glow: rgba(231, 86, 90, 0.3);
    --fml-secondary: #4a5568;
    --fml-success: #48bb78;
    --fml-error: #fc8181;
    --fml-warning: #f6e05e;
    --fml-info: #63b3ed;
    --fml-dark: #1a1a2e;
    --fml-darker: #0f0f1a;
    --fml-light: #2d2d44;
    --fml-lighter: #3d3d5c;
    --fml-border: #404060;
    --fml-border-light: #505070;
    --fml-text: #e2e8f0;
    --fml-text-muted: #a0aec0;
    --fml-text-bright: #ffffff;
    --fml-bg: #1e1e32;
    --fml-bg-card: #252540;
    --fml-bg-input: #1a1a2e;
    --fml-radius: 8px;
    --fml-radius-lg: 12px;
    --fml-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --fml-shadow-glow: 0 0 20px rgba(231, 86, 90, 0.2);
}

/* ============================================================================
   Cart Container
   ============================================================================ */
.fml-cart-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    color: var(--fml-text);
}

/* ============================================================================
   Test Mode Banner
   ============================================================================ */
.fml-test-mode-banner {
    background: linear-gradient(135deg, #f0ad4e 0%, #ec971f 100%);
    color: #000;
    padding: 12px 20px;
    border-radius: var(--fml-radius);
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(240, 173, 78, 0.3);
}

.fml-test-mode-banner i {
    font-size: 1.2rem;
}

.fml-test-mode-banner strong {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fml-test-mode-note {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-left: auto;
}

@media (max-width: 600px) {
    .fml-test-mode-banner {
        flex-direction: column;
        text-align: center;
    }

    .fml-test-mode-note {
        margin-left: 0;
        margin-top: 5px;
    }
}

/* ============================================================================
   Empty Cart
   ============================================================================ */
.fml-cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--fml-text-muted);
    background: var(--fml-bg-card);
    border-radius: var(--fml-radius-lg);
    border: 1px solid var(--fml-border);
}

.fml-cart-empty i {
    opacity: 0.4;
    margin-bottom: 20px;
    color: var(--fml-primary);
}

.fml-cart-empty h3 {
    margin: 0 0 10px;
    color: var(--fml-text-bright);
}

.fml-cart-empty p {
    margin: 0 0 20px;
}

/* ============================================================================
   Cart Items
   ============================================================================ */
.fml-cart-items {
    margin-bottom: 30px;
}

.fml-cart-items h3 {
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--fml-border);
    color: var(--fml-text-bright);
}

.fml-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    margin-bottom: 15px;
    background: var(--fml-bg-card);
    border: 1px solid var(--fml-border);
    border-radius: var(--fml-radius);
    transition: all 0.3s ease;
}

.fml-cart-item:hover {
    border-color: var(--fml-border-light);
    box-shadow: var(--fml-shadow);
}

/* Item Image */
.fml-cart-item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.fml-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--fml-border);
}

.fml-cart-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fml-light);
    border-radius: 6px;
    color: var(--fml-text-muted);
    border: 1px solid var(--fml-border);
}

/* Item Details */
.fml-cart-item-details {
    flex-grow: 1;
    min-width: 0;
}

.fml-cart-item-title {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.fml-cart-item-title a {
    color: var(--fml-text-bright);
    text-decoration: none;
    transition: color 0.2s;
}

.fml-cart-item-title a:hover {
    color: var(--fml-primary);
}

.fml-cart-item-artist {
    margin: 0 0 15px;
    color: var(--fml-text-muted);
    font-size: 0.9rem;
}

/* License Type Selector */
.fml-cart-item-license {
    margin-bottom: 10px;
}

.fml-cart-item-license label {
    display: block;
    font-size: 0.85rem;
    color: var(--fml-text-muted);
    margin-bottom: 5px;
}

.fml-license-type-select {
    width: 100%;
    max-width: 280px;
    padding: 10px 12px;
    border: 1px solid var(--fml-border);
    border-radius: 6px;
    background: var(--fml-bg-input);
    color: var(--fml-text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fml-license-type-select:focus {
    outline: none;
    border-color: var(--fml-primary);
    box-shadow: 0 0 0 3px var(--fml-primary-glow);
}

.fml-license-type-select option {
    background: var(--fml-bg-input);
    color: var(--fml-text);
}

/* NFT Option */
.fml-cart-item-nft {
    margin-top: 10px;
}

.fml-nft-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.fml-cart-item-nft {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.fml-nft-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--fml-primary);
    cursor: pointer;
}

.fml-nft-label {
    font-size: 0.9rem;
    color: var(--fml-text);
}

.fml-nft-label i {
    color: var(--fml-info);
    cursor: help;
    margin-left: 5px;
}

/* Powered by Cardano branding */
.fml-powered-by-cardano {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    color: var(--fml-text-muted);
    margin-top: 6px;
    width: 100%;
    transition: opacity 0.2s;
}

.fml-powered-by-cardano:hover {
    opacity: 0.8;
}

.fml-cardano-logo {
    width: 100px;
    height: auto;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    transition: filter 0.2s;
}

.fml-powered-by-cardano:hover .fml-cardano-logo {
    filter: none;
}

/* Info icon tooltip - show on hover */
.fml-info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--fml-info);
    cursor: help;
    margin-left: 5px;
}

.fml-info-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: var(--fml-darker);
    color: var(--fml-text);
    font-size: 0.75rem;
    font-weight: normal;
    white-space: normal;
    width: 220px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid var(--fml-border);
    box-shadow: var(--fml-shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
    pointer-events: none;
}

.fml-info-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--fml-darker);
    margin-bottom: -12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1001;
    pointer-events: none;
}

.fml-info-tooltip:hover::before,
.fml-info-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Wallet Input */
.fml-wallet-input {
    margin-top: 12px;
}

.fml-wallet-input.hidden {
    display: none;
}

.fml-wallet-address {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--fml-border);
    border-radius: 6px;
    background: var(--fml-bg-input);
    color: var(--fml-text);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fml-wallet-address::placeholder {
    color: var(--fml-text-muted);
    opacity: 0.7;
}

.fml-wallet-address:focus {
    outline: none;
    border-color: var(--fml-primary);
    box-shadow: 0 0 0 3px var(--fml-primary-glow);
}

.fml-wallet-address.valid {
    border-color: var(--fml-success);
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.2);
}

.fml-wallet-address.invalid {
    border-color: var(--fml-error);
    box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.2);
}

.fml-wallet-validation {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    margin-top: 5px;
    background: transparent;
}

.fml-wallet-validation.success {
    color: var(--fml-success);
}

.fml-wallet-validation.success::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.fml-wallet-validation.error {
    color: var(--fml-error);
}

.fml-wallet-validation.error::before {
    content: '\f00d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.fml-wallet-validation.warning {
    color: var(--fml-warning);
}

.fml-wallet-validation.warning::before {
    content: '\f071';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

/* Item Price */
.fml-cart-item-price {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.fml-item-price-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fml-primary);
}

.fml-cart-remove {
    background: transparent;
    border: 1px solid transparent;
    color: var(--fml-text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.fml-cart-remove:hover {
    color: var(--fml-error);
    background: rgba(252, 129, 129, 0.1);
    border-color: var(--fml-error);
}

/* ============================================================================
   Cart Summary
   ============================================================================ */
.fml-cart-summary {
    background: var(--fml-bg-card);
    border: 1px solid var(--fml-border);
    border-radius: var(--fml-radius-lg);
    padding: 25px;
}

.fml-cart-totals {
    margin-bottom: 25px;
}

.fml-cart-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--fml-border);
    color: var(--fml-text);
}

.fml-cart-row.fml-cart-total {
    border-bottom: none;
    padding-top: 18px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fml-text-bright);
}

.fml-total-amount {
    color: var(--fml-primary);
    text-shadow: 0 0 10px var(--fml-primary-glow);
}

/* ============================================================================
   Checkout Form
   ============================================================================ */
.fml-checkout-form h4 {
    margin: 0 0 20px;
    color: var(--fml-text-bright);
}

.fml-form-group {
    margin-bottom: 18px;
}

.fml-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--fml-text);
}

.fml-form-group input,
.fml-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--fml-border);
    border-radius: 6px;
    background: var(--fml-bg-input);
    color: var(--fml-text);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fml-form-group input::placeholder,
.fml-form-group textarea::placeholder {
    color: var(--fml-text-muted);
    opacity: 0.7;
}

.fml-form-group input:focus,
.fml-form-group textarea:focus {
    outline: none;
    border-color: var(--fml-primary);
    box-shadow: 0 0 0 3px var(--fml-primary-glow);
}

.fml-login-notice {
    background: rgba(246, 224, 94, 0.1);
    border: 1px solid rgba(246, 224, 94, 0.3);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    color: var(--fml-warning);
}

.fml-login-notice p {
    margin: 0;
}

.fml-login-notice a {
    color: var(--fml-primary);
    font-weight: 600;
    text-decoration: underline;
}

/* ============================================================================
   Buttons
   ============================================================================ */
.fml-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--fml-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.fml-btn-primary {
    background: linear-gradient(135deg, var(--fml-primary) 0%, #ff7a7e 100%);
    color: white;
    box-shadow: 0 4px 15px var(--fml-primary-glow);
}

.fml-btn-primary:hover {
    background: linear-gradient(135deg, var(--fml-primary-dark) 0%, #ff8a8e 100%);
    box-shadow: 0 6px 25px var(--fml-primary-glow);
    transform: translateY(-2px);
}

.fml-btn-secondary {
    background: var(--fml-light);
    color: var(--fml-text);
    border: 1px solid var(--fml-border);
}

.fml-btn-secondary:hover {
    background: var(--fml-lighter);
    border-color: var(--fml-border-light);
}

.fml-btn-block {
    width: 100%;
    margin-bottom: 12px;
}

.fml-btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.fml-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.fml-btn.in-cart {
    background: linear-gradient(135deg, var(--fml-success) 0%, #68d391 100%);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.fml-btn.in-cart a {
    color: white;
    text-decoration: underline;
}

/* ============================================================================
   Mini Cart Icon
   ============================================================================ */
.fml-mini-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fml-text);
    text-decoration: none;
    padding: 10px;
    transition: color 0.2s;
}

.fml-mini-cart:hover {
    color: var(--fml-primary);
}

.fml-cart-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--fml-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--fml-primary-glow);
}

.fml-cart-count.hidden {
    display: none;
}

.fml-cart-total-mini {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--fml-primary);
}

/* ============================================================================
   Add to Cart Wrapper
   ============================================================================ */
.fml-add-to-cart-wrapper {
    padding: 25px;
    background: var(--fml-bg-card);
    border: 1px solid var(--fml-border);
    border-radius: var(--fml-radius-lg);
}

.fml-license-options {
    margin-bottom: 20px;
}

.fml-option-group {
    margin-bottom: 20px;
}

.fml-option-group > label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--fml-text-bright);
}

.fml-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fml-radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: var(--fml-bg-input);
    border: 1px solid var(--fml-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.fml-radio-option:hover {
    border-color: var(--fml-primary);
    background: rgba(231, 86, 90, 0.05);
}

.fml-radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--fml-primary);
    cursor: pointer;
}

.fml-radio-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    color: var(--fml-text);
}

.fml-radio-label strong {
    color: var(--fml-text-bright);
}

.fml-price {
    font-weight: 700;
    color: var(--fml-primary);
}

.fml-nft-option {
    padding: 18px;
    background: linear-gradient(135deg, rgba(99, 179, 237, 0.1) 0%, rgba(99, 179, 237, 0.05) 100%);
    border: 1px solid rgba(99, 179, 237, 0.3);
    border-radius: 8px;
}

.fml-nft-option > .fml-checkbox-option {
    display: inline-flex;
}

.fml-nft-option > .fml-info-tooltip {
    margin-left: 8px;
}

.fml-checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.fml-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--fml-text);
}

.fml-checkbox-label strong {
    color: var(--fml-text-bright);
}

.fml-tooltip {
    color: var(--fml-info);
    cursor: help;
}

.fml-wallet-input-add {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(99, 179, 237, 0.2);
}

.fml-wallet-input-add.hidden {
    display: none;
}

.fml-wallet-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--fml-text);
}

.fml-wallet-label .required {
    color: var(--fml-error);
}

.fml-wallet-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.fml-wallet-input-field {
    width: 100%;
    padding: 12px 45px 12px 14px;
    border: 2px solid var(--fml-border);
    border-radius: 6px;
    background: var(--fml-bg-input);
    color: var(--fml-text);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.fml-wallet-input-field::placeholder {
    color: var(--fml-text-muted);
    opacity: 0.7;
}

.fml-wallet-input-field:focus {
    outline: none;
    border-color: var(--fml-primary);
    box-shadow: 0 0 0 3px var(--fml-primary-glow);
}

/* Wallet Validation States */
.fml-wallet-input-field.valid {
    border-color: var(--fml-success);
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.2);
}

.fml-wallet-input-field.invalid {
    border-color: var(--fml-error);
    box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.2);
}

.fml-wallet-input-field.warning {
    border-color: var(--fml-warning);
    box-shadow: 0 0 0 3px rgba(246, 224, 94, 0.2);
}

/* Validation Icon */
.fml-wallet-validation-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
}

.fml-wallet-validation-icon.valid {
    color: var(--fml-success);
}

.fml-wallet-validation-icon.invalid {
    color: var(--fml-error);
}

.fml-wallet-validation-icon.warning {
    color: var(--fml-warning);
}

/* Validation Message */
.fml-wallet-validation-msg {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    margin-top: 6px;
    min-height: 1.2em;
    background: transparent;
}

.fml-wallet-validation-msg.success {
    color: var(--fml-success);
}

.fml-wallet-validation-msg.success::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.fml-wallet-validation-msg.error {
    color: var(--fml-error);
}

.fml-wallet-validation-msg.error::before {
    content: '\f00d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.fml-wallet-validation-msg.warning {
    color: var(--fml-warning);
}

.fml-wallet-validation-msg.warning::before {
    content: '\f071';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

/* Wallet Hint */
.fml-wallet-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--fml-text-muted);
    margin-top: 8px;
    opacity: 0.8;
}

/* ============================================================================
   License Options Standalone
   ============================================================================ */
.fml-license-options-standalone {
    color: var(--fml-text);
}

.fml-license-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.fml-license-card {
    background: var(--fml-bg-card);
    border: 2px solid var(--fml-border);
    border-radius: var(--fml-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.fml-license-card:hover {
    border-color: var(--fml-border-light);
    box-shadow: var(--fml-shadow);
}

.fml-license-card.selected {
    border-color: var(--fml-primary);
    box-shadow: var(--fml-shadow-glow);
}

.fml-license-card-header {
    padding: 18px 22px;
    background: var(--fml-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--fml-border);
}

.fml-license-card-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--fml-text-bright);
}

.fml-license-price {
    font-weight: 700;
    color: var(--fml-primary);
    font-size: 1.2rem;
}

.fml-license-card-body {
    padding: 18px 22px;
}

.fml-license-card-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fml-license-card-body li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--fml-text);
}

.fml-license-card-body li i {
    color: var(--fml-success);
    margin-right: 10px;
}

.fml-license-card-footer {
    padding: 15px 22px;
    border-top: 1px solid var(--fml-border);
    background: rgba(0, 0, 0, 0.1);
}

.fml-radio-select {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--fml-text);
}

.fml-radio-select input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--fml-primary);
}

/* NFT Addon */
.fml-nft-addon {
    background: linear-gradient(135deg, rgba(99, 179, 237, 0.1) 0%, rgba(72, 187, 120, 0.05) 100%);
    border: 1px solid rgba(99, 179, 237, 0.3);
    border-radius: var(--fml-radius-lg);
    overflow: hidden;
}

.fml-nft-addon-header {
    padding: 18px 22px;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(99, 179, 237, 0.2);
}

.fml-checkbox-select {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.fml-checkbox-select input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--fml-primary);
}

.fml-nft-addon-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--fml-text-bright);
}

.fml-nft-addon-title i {
    color: var(--fml-info);
}

.fml-addon-price {
    color: var(--fml-primary);
    margin-left: auto;
    font-weight: 700;
}

.fml-nft-addon-body {
    padding: 18px 22px;
}

.fml-nft-addon-body p {
    margin: 0 0 15px;
    font-size: 0.9rem;
    color: var(--fml-text-muted);
}

.fml-wallet-input-standalone {
    margin-top: 15px;
}

.fml-wallet-input-standalone.hidden {
    display: none;
}

.fml-wallet-input-standalone label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--fml-text);
}

.fml-wallet-input-standalone input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--fml-border);
    border-radius: 6px;
    background: var(--fml-bg-input);
    color: var(--fml-text);
    font-family: 'Courier New', monospace;
}

.fml-wallet-input-standalone input::placeholder {
    color: var(--fml-text-muted);
    opacity: 0.7;
}

.fml-wallet-input-standalone input:focus {
    outline: none;
    border-color: var(--fml-primary);
    box-shadow: 0 0 0 3px var(--fml-primary-glow);
}

.fml-wallet-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--fml-text-muted);
    margin-top: 8px;
}

/* ============================================================================
   Verification Badge
   ============================================================================ */
.fml-verification-badge {
    display: inline-block;
}

.fml-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
}

.fml-badge-verified {
    background: linear-gradient(135deg, var(--fml-success) 0%, #68d391 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(72, 187, 120, 0.3);
}

.fml-badge-standard {
    background: var(--fml-light);
    color: var(--fml-text-muted);
    border: 1px solid var(--fml-border);
}

.fml-verification-details {
    margin-top: 15px;
    padding: 15px;
    background: var(--fml-bg-card);
    border: 1px solid var(--fml-border);
    border-radius: 8px;
    font-size: 0.85rem;
}

.fml-verification-details p {
    margin: 8px 0;
    color: var(--fml-text);
}

.fml-verification-details strong {
    color: var(--fml-text-muted);
}

.fml-verification-details a {
    color: var(--fml-primary);
    text-decoration: none;
}

.fml-verification-details a:hover {
    text-decoration: underline;
}

/* ============================================================================
   Loading Overlay
   ============================================================================ */
.fml-cart-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 30, 50, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--fml-primary);
    z-index: 100;
    border-radius: var(--fml-radius-lg);
}

.fml-cart-loading.hidden {
    display: none;
}

/* ============================================================================
   Notifications - Centered Modal Style
   ============================================================================ */
.fml-notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fml-notification-overlay.show {
    opacity: 1;
    visibility: visible;
}

.fml-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    max-width: 450px;
    width: 90%;
    padding: 30px 35px;
    background: var(--fml-bg-card);
    border: 1px solid var(--fml-border);
    border-radius: var(--fml-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: var(--fml-text);
}

.fml-notification.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.fml-notification-icon {
    font-size: 3rem;
    margin-bottom: 5px;
}

.fml-notification-success .fml-notification-icon {
    color: var(--fml-success);
}

.fml-notification-error .fml-notification-icon {
    color: var(--fml-error);
}

.fml-notification-info .fml-notification-icon {
    color: var(--fml-info);
}

.fml-notification-success {
    border-top: 4px solid var(--fml-success);
}

.fml-notification-error {
    border-top: 4px solid var(--fml-error);
}

.fml-notification-info {
    border-top: 4px solid var(--fml-info);
}

.fml-notification-message {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--fml-text-bright);
}

.fml-notification-close {
    background: var(--fml-light);
    border: 1px solid var(--fml-border);
    font-size: 0.95rem;
    color: var(--fml-text);
    cursor: pointer;
    padding: 10px 30px;
    border-radius: 6px;
    margin-top: 10px;
    transition: all 0.2s;
}

.fml-notification-close:hover {
    background: var(--fml-lighter);
    border-color: var(--fml-border-light);
    color: var(--fml-text-bright);
}

/* ============================================================================
   Checkout Standalone
   ============================================================================ */
.fml-checkout-standalone {
    max-width: 600px;
    margin: 0 auto;
    color: var(--fml-text);
}

.fml-checkout-summary {
    background: var(--fml-bg-card);
    border: 1px solid var(--fml-border);
    border-radius: var(--fml-radius-lg);
    padding: 22px;
    margin-bottom: 25px;
}

.fml-checkout-summary h3 {
    margin: 0 0 18px;
    color: var(--fml-text-bright);
}

.fml-order-items {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.fml-order-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--fml-border);
}

.fml-order-item-name {
    font-weight: 600;
    color: var(--fml-text-bright);
}

.fml-order-item-details {
    font-size: 0.85rem;
    color: var(--fml-text-muted);
}

.fml-nft-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--fml-info) 0%, #4299e1 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.fml-order-item-price {
    font-weight: 700;
    color: var(--fml-primary);
}

.fml-order-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    padding-top: 15px;
    color: var(--fml-text-bright);
}

.fml-order-total span:last-child {
    color: var(--fml-primary);
    font-weight: 700;
}

.fml-checkout-form-standalone {
    background: var(--fml-bg-card);
    border: 1px solid var(--fml-border);
    border-radius: var(--fml-radius-lg);
    padding: 28px;
}

.fml-login-required {
    text-align: center;
    padding: 22px;
    background: rgba(246, 224, 94, 0.1);
    border: 1px solid rgba(246, 224, 94, 0.3);
    border-radius: 8px;
    color: var(--fml-warning);
}

.fml-login-required a {
    color: var(--fml-primary);
    font-weight: 600;
}

/* ============================================================================
   Scrollbar Styling (for cart areas)
   ============================================================================ */
.fml-cart-items::-webkit-scrollbar {
    width: 8px;
}

.fml-cart-items::-webkit-scrollbar-track {
    background: var(--fml-bg);
    border-radius: 4px;
}

.fml-cart-items::-webkit-scrollbar-thumb {
    background: var(--fml-light);
    border-radius: 4px;
}

.fml-cart-items::-webkit-scrollbar-thumb:hover {
    background: var(--fml-lighter);
}

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 768px) {
    .fml-cart-container {
        padding: 15px;
    }

    .fml-cart-item {
        flex-direction: column;
        padding: 18px;
    }

    .fml-cart-item-image {
        width: 60px;
        height: 60px;
    }

    .fml-cart-item-price {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding-top: 15px;
        border-top: 1px solid var(--fml-border);
        margin-top: 15px;
    }

    .fml-license-cards {
        grid-template-columns: 1fr;
    }

    .fml-notification {
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
    }

    .fml-btn {
        padding: 12px 20px;
    }

    .fml-btn-lg {
        padding: 14px 24px;
    }
}

@media (max-width: 480px) {
    .fml-cart-summary {
        padding: 18px;
    }

    .fml-add-to-cart-wrapper {
        padding: 18px;
    }

    .fml-license-card-header,
    .fml-license-card-body,
    .fml-license-card-footer {
        padding: 15px 18px;
    }

    .fml-checkout-form-standalone {
        padding: 20px;
    }
}
