/* Gift wizard styles extracted for production WebApp */

[data-gift-card="1"] .icon-svg { color: #ff7eb3; }
[data-gift-card="1"] { grid-column: 1 / -1; }

#gift-wizard .header {
    display: flex;
    align-items: center;
    gap: 10px;
}
#gift-wizard .header h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#gift-wizard .back-btn {
    position: static;
    left: auto;
    top: auto;
    padding: 4px 6px;
    flex-shrink: 0;
    white-space: nowrap;
}

.gift-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 0 18px;
    padding: 0 12px;
}
.gift-step-dot {
    width: 26px; height: 26px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted, #666);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.gift-step-dot.active {
    background: rgba(42, 171, 238, 0.12);
    color: #2aabee;
    border-color: rgba(42, 171, 238, 0.25);
    box-shadow: 0 0 10px rgba(42, 171, 238, 0.08);
}
.gift-step-dot.done {
    background: rgba(110, 231, 168, 0.10);
    color: #6ee7a8;
    border-color: rgba(110, 231, 168, 0.20);
}
.gift-step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.04);
    margin: 0 4px;
    border-radius: 999px;
    transition: background 0.2s ease;
}
.gift-step-line.done { background: rgba(110, 231, 168, 0.18); }

.gift-wizard-body { padding: 4px 16px 100px; }

.gift-card {
    padding: 18px 16px;
    border-radius: 16px;
    margin-bottom: 14px;
}
.gift-card__label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-primary, #ededed);
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}
.gift-item {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 10px 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    transition: all 0.15s ease;
    color: var(--text-primary, #ededed);
}
.gift-item:active { transform: scale(0.97); }
.gift-item__media {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.gift-item__media img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}
.gift-item__media--missing {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 11px;
    color: var(--text-muted, #777);
    font-weight: 700;
}
.gift-item--unavailable {
    opacity: 0.55;
    cursor: not-allowed;
}
.gift-png-warning {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: #ffd89a;
    border: 1px solid rgba(255, 204, 102, 0.24);
    background: rgba(255, 204, 102, 0.08);
}
.gift-item__title { font-size: 12px; font-weight: 700; text-align: center; }
.gift-item__price { font-size: 11px; color: #f4c64d; font-weight: 700; }
.gift-item--active {
    border-color: rgba(42, 171, 238, 0.26);
    background: rgba(42, 171, 238, 0.10);
    box-shadow: 0 0 12px rgba(42, 171, 238, 0.10);
}

.gift-qty-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.gift-qty-btn {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary, #ededed);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.gift-qty-btn:active { transform: scale(0.93); }
.gift-qty-btn--active {
    background: rgba(42, 171, 238, 0.10);
    border-color: rgba(42, 171, 238, 0.25);
    color: #2aabee;
    box-shadow: 0 0 12px rgba(42, 171, 238, 0.06);
}

.gift-custom-row { margin-bottom: 10px; }

.gift-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary, #ededed);
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}
.gift-input:focus {
    border-color: rgba(42, 171, 238, 0.30);
    box-shadow: 0 0 0 2px rgba(42, 171, 238, 0.08);
}
.gift-input::placeholder { color: var(--text-muted, #666); }

#gift-wizard .recipient-input {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
#gift-wizard .gift-recipient-group { margin: 0; }
#gift-wizard .gift-recipient-group label {
    display: block;
    margin-bottom: 10px;
}
#gift-wizard .recipient-input .recipient-field {
    flex: 1;
    min-width: 0;
}
#gift-wizard .recipient-input .recipient-field input {
    width: 100%;
    height: 42px;
    border-radius: 12px;
}
#gift-wizard .recipient-input .btn-inline {
    height: 42px;
    flex-shrink: 0;
    white-space: nowrap;
}

.gift-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary, #ededed);
    font-size: 14px;
    outline: none;
    resize: vertical;
    min-height: 70px;
    box-sizing: border-box;
    font-family: inherit;
    margin-top: 10px;
}
.gift-textarea:focus {
    border-color: rgba(42, 171, 238, 0.30);
    box-shadow: 0 0 0 2px rgba(42, 171, 238, 0.08);
}
.gift-textarea::placeholder { color: var(--text-muted, #666); }

.gift-comment-counter {
    text-align: right;
    font-size: 11px;
    color: var(--text-muted, #666);
    margin-top: 4px;
}

.gift-price-preview {
    font-size: 18px;
    font-weight: 800;
    color: #f4c64d;
    text-align: center;
    padding: 8px 0;
    margin-bottom: 2px;
}

.gift-hint {
    font-size: 11.5px;
    color: var(--text-muted, #666);
    text-align: center;
    line-height: 1.4;
    margin-top: 6px;
}

.gift-option-btn {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid rgba(42, 171, 238, 0.12);
    background: rgba(42, 171, 238, 0.04);
    color: #70bfff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 8px;
}
.gift-option-btn:active { transform: scale(0.97); }

.gift-recipient-error {
    font-size: 12px;
    color: #f08080;
    margin-top: 6px;
    min-height: 18px;
}

.gift-anon-btn {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary, #ededed);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 8px;
    text-align: left;
}
.gift-anon-btn:active { transform: scale(0.97); }
.gift-anon-btn--active {
    background: rgba(42, 171, 238, 0.10);
    border-color: rgba(42, 171, 238, 0.25);
    color: #2aabee;
    box-shadow: 0 0 12px rgba(42, 171, 238, 0.06);
}

.gift-summary-card { padding: 18px 16px; }
.gift-summary-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    text-align: center;
}
.gift-summary-rows { display: grid; gap: 8px; }
.gift-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary, #a0a0a0);
    padding: 2px 0;
}
.gift-summary-row span:last-child { color: var(--text-primary, #ededed); font-weight: 600; }
.gift-summary-total {
    font-size: 15px !important;
    padding-top: 6px !important;
}
.gift-summary-total span:last-child { color: #f4c64d !important; font-weight: 800 !important; }
.gift-summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
    margin: 6px 0;
}
.gift-summary-comment {
    font-size: 12px;
    color: var(--text-muted, #666);
    font-style: italic;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    line-height: 1.4;
    word-break: break-word;
}

.gift-confirm-card {
    text-align: center;
    padding: 24px 16px;
}
.gift-confirm-icon {
    font-size: 40px;
    margin-bottom: 10px;
}
.gift-confirm-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}
.gift-confirm-text {
    font-size: 13px;
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.5;
    margin-bottom: 14px;
}
.gift-confirm-link {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2aabee, #4d7cff);
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 16px;
    transition: transform 0.12s ease;
    cursor: pointer;
}
.gift-confirm-link:active { transform: scale(0.96); }

.gift-confirm-checkbox-row {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}
.gift-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-secondary, #a0a0a0);
}
.gift-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    accent-color: #2aabee;
    cursor: pointer;
}

.gift-next-btn {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 16px;
    margin-top: 4px;
}
.gift-next-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.gift-creating-status {
    text-align: center;
    font-size: 13px;
    color: #f08080;
    margin-top: 10px;
    min-height: 20px;
}

.gift-payment-card { padding: 20px 16px; }
.gift-payment-card-row,
.gift-payment-amount-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 10px 0;
}
.gift-payment-card-label,
.gift-payment-amount-label {
    font-size: 11px;
    color: var(--text-muted, #666);
    white-space: nowrap;
}
.gift-payment-card-number,
.gift-payment-amount-value {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.gift-payment-warning {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(248, 80, 80, 0.03);
    border: 1px solid rgba(248, 100, 100, 0.10);
    font-size: 12px;
    line-height: 1.5;
    color: #c8a0a0;
    margin: 10px 0;
}
.gift-payment-warning b { color: #f08080; }

