/* Checkout Page Styles - WebDesign by Tomi */

/* Package Selector in Header */
.package-selector {
    position: relative;
}

.package-selector-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.package-selector-btn:hover {
    border-color: var(--accent);
}

.package-selector-btn svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.package-selector-btn.open svg {
    transform: rotate(180deg);
}

.package-selector-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 100;
    overflow: hidden;
}

.package-selector-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.package-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s;
}

.package-option:hover {
    background: var(--bg-elevated);
}

.package-option.active {
    background: rgba(45, 212, 191, 0.1);
}

.package-option-name {
    font-size: 13px;
    font-weight: 500;
}

.package-option-price {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

/* Global SVG fix - prevent oversized icons */
.checkout-main svg,
.checkout-sidebar svg {
    max-width: 24px;
    max-height: 24px;
    flex-shrink: 0;
}

/* Page Header */
.checkout-header {
    margin-bottom: 24px;
}

.checkout-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.checkout-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .checkout-title {
        font-size: 28px;
    }
    .checkout-header {
        margin-bottom: 32px;
    }
}

/* Layout */
.checkout-wrapper {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .checkout-wrapper {
        grid-template-columns: 1fr 400px;
        gap: 40px;
    }
}

/* Left Column - Main Content */
.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Right Column - Summary (Sticky on Desktop) */
.checkout-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .checkout-sidebar {
        position: sticky;
        top: 88px;
        height: fit-content;
    }
}

/* Card Styles */
.checkout-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(28, 37, 46, 0.8) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.checkout-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-card-title svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

/* Package Summary */
.package-summary {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--accent);
    position: relative;
    overflow: visible;
}

.package-summary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

.package-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    position: relative;
}

.package-info {
    flex: 1;
    min-width: 0;
}

.package-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    position: relative;
}

.package-description {
    font-size: 13px;
    color: var(--text-secondary);
    position: relative;
}

/* Package Selector in Summary Card */
.package-summary .package-selector {
    position: relative;
    flex-shrink: 0;
}

.package-summary .package-selector-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.package-summary .package-selector-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

.package-summary .package-selector-btn.open {
    border-color: var(--accent);
}

.package-summary .package-selector-btn svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.package-summary .package-selector-btn.open svg {
    transform: rotate(180deg);
}

.package-summary .package-selector-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 100;
    overflow: hidden;
}

.package-summary .package-selector-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.package-summary .package-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border);
}

.package-summary .package-option:last-child {
    border-bottom: none;
}

.package-summary .package-option:hover {
    background: var(--bg-elevated);
}

.package-summary .package-option.active {
    background: rgba(45, 212, 191, 0.1);
    pointer-events: none;
}

.package-summary .package-option::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.15s;
}

.package-summary .package-option.active::before {
    content: '✓';
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-summary .package-option-name {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.package-summary .package-option-price {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
}

.package-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    position: relative;
}

.package-price-current {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}

.package-price-original {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.package-discount-badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--success-soft);
    color: var(--success);
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    margin-left: 8px;
}

.package-features-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    position: relative;
}

.package-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg);
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-secondary);
}

.package-feature-tag svg {
    width: 12px;
    height: 12px;
    color: var(--success);
}

/* Add-ons Section */
.addon-grid {
    display: grid;
    gap: 10px;
}

.addon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.addon-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.addon-item.selected {
    border-color: var(--accent);
    background: rgba(45, 212, 191, 0.08);
}

.addon-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.addon-item.selected .addon-checkbox {
    background: var(--accent);
    border-color: var(--accent);
}

.addon-checkbox svg {
    width: 12px;
    height: 12px;
    color: var(--bg);
    opacity: 0;
    transition: opacity 0.2s;
}

.addon-item.selected .addon-checkbox svg {
    opacity: 1;
}

.addon-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.addon-info {
    flex: 1;
    min-width: 0;
}

.addon-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.addon-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.addon-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}

/* Hosting Addon (Special) */
.hosting-addon {
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.hosting-addon.selected {
    border-color: var(--accent);
    background: rgba(45, 212, 191, 0.05);
}

.hosting-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
}

.hosting-header:hover {
    background: rgba(45, 212, 191, 0.05);
}

.hosting-addon.selected .addon-checkbox {
    background: var(--accent);
    border-color: var(--accent);
}

.hosting-addon.selected .addon-checkbox svg {
    opacity: 1;
}

.hosting-first-year {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.hosting-original-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.hosting-free-badge {
    padding: 4px 10px;
    background: var(--success);
    color: var(--bg);
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}

.hosting-expand-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.hosting-addon.expanded .hosting-expand-icon {
    transform: rotate(180deg);
}

.hosting-details {
    border-top: 1px solid var(--border);
    padding: 16px;
    background: rgba(0, 0, 0, 0.15);
}

.hosting-included {
    margin-bottom: 20px;
}

.hosting-included-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hosting-included-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12px;
    color: var(--success);
}

.hosting-extend-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.hosting-extend-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.hosting-year-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.hosting-year-option:hover {
    border-color: var(--border-hover);
}

.hosting-year-option.selected {
    border-color: var(--accent);
    background: rgba(45, 212, 191, 0.1);
}

.hosting-year-radio {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.hosting-year-option.selected .hosting-year-radio {
    border-color: var(--accent);
}

.hosting-year-option.selected .hosting-year-radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.hosting-year-info {
    flex: 1;
    min-width: 0;
}

.hosting-year-label {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hosting-year-discount {
    padding: 2px 6px;
    background: var(--success-soft);
    color: var(--success);
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
}

.hosting-year-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.hosting-year-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.hosting-year-original {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.hosting-year-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

/* Compact Card */
.checkout-card-compact {
    padding: 16px;
}

.checkout-card-compact .checkout-card-title {
    margin-bottom: 12px;
}

/* Infrastructure Addons (Compact) */
.infra-addons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.infra-addon {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.infra-addon.selected {
    border-color: var(--accent);
}

.infra-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

.infra-header:hover {
    background: rgba(45, 212, 191, 0.03);
}

.infra-header .addon-icon {
    font-size: 16px;
}

.infra-info {
    flex: 1;
    min-width: 0;
}

.infra-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.infra-included {
    font-size: 13px;
    color: var(--text-muted);
}

.infra-badge {
    display: flex;
    align-items: center;
    gap: 6px;
}

.infra-value {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.infra-free {
    padding: 4px 10px;
    background: var(--success);
    color: var(--bg);
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
}

.infra-expand-icon {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px;
    max-width: 14px;
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.infra-addon.expanded .infra-expand-icon {
    transform: rotate(180deg);
}

.infra-details {
    display: none;
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.1);
}

.infra-addon.expanded .infra-details {
    display: block;
}

.infra-extend-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.infra-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.infra-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s;
}

.infra-option:hover {
    border-color: var(--accent);
}

.infra-option.selected {
    border-color: var(--accent);
    background: rgba(45, 212, 191, 0.1);
}

.infra-option input[type="radio"] {
    display: none;
}

.infra-option small {
    color: var(--success);
    font-weight: 600;
}

.infra-option-price {
    color: var(--accent);
    font-weight: 600;
    margin-left: auto;
}

.infra-option-price .savings {
    color: var(--success);
    font-size: 10px;
    font-weight: 500;
    opacity: 0.8;
    margin-left: 4px;
}

/* Compact Addon Grid */
.addon-grid-compact {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.addon-item-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.addon-item-compact:hover {
    border-color: rgba(45, 212, 191, 0.3);
}

.addon-item-compact.selected {
    border-color: var(--accent);
    background: rgba(45, 212, 191, 0.08);
}

.addon-item-compact .addon-checkbox {
    width: 18px;
    height: 18px;
}

.addon-item-compact .addon-icon {
    font-size: 18px;
}

.addon-item-compact .addon-name {
    font-size: 14px;
}

.addon-item-compact .addon-desc {
    font-size: 12px;
}

.addon-item-compact .addon-price {
    font-size: 14px;
}

.addon-item-compact.selected .addon-checkbox {
    background: var(--accent);
    border-color: var(--accent);
}

.addon-item-compact.selected .addon-checkbox svg {
    opacity: 1;
}

.addon-item-compact.addon-hidden {
    display: none !important;
}

.addon-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px dashed rgba(45, 212, 191, 0.25);
    border-radius: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.addon-show-more:hover {
    border-color: var(--accent);
    background: rgba(45, 212, 191, 0.05);
}

.addon-show-more svg {
    transition: transform 0.2s;
}

.addon-show-more.expanded svg {
    transform: rotate(180deg);
}

/* Section Expand */
.checkout-card-title.clickable {
    cursor: pointer;
    user-select: none;
}

.checkout-card-title.clickable:hover {
    color: var(--accent);
}

.section-expand-icon {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    max-width: 16px;
    margin-left: auto;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.checkout-card-title.expanded .section-expand-icon {
    transform: rotate(180deg);
}

.addon-count {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

/* Customer Type Toggle */
.customer-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.customer-type-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.customer-type-btn svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    max-width: 18px;
}

.customer-type-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

.customer-type-btn.selected {
    border-color: var(--accent);
    background: rgba(45, 212, 191, 0.1);
    color: var(--text);
}

/* Summary Features */
.summary-package {
    margin-bottom: 12px;
}

.summary-line.package-line {
    margin-bottom: 8px;
}

.summary-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    margin-top: 8px;
    background: rgba(45, 212, 191, 0.03);
    border-left: 2px solid var(--accent);
    border-radius: 0 6px 6px 0;
}

.summary-features span {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Summary free badge */
.summary-free {
    color: var(--success);
    font-weight: 600;
}

/* Coupon Section (inside summary) */
.summary-coupon-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.coupon-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.coupon-toggle:hover {
    color: var(--accent);
}

.coupon-toggle-text {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.coupon-toggle-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.coupon-toggle.open .coupon-toggle-icon {
    transform: rotate(180deg);
}

.coupon-content {
    margin-top: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.coupon-wrapper {
    display: flex;
    gap: 8px;
}

.coupon-input {
    flex: 1;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
}

.coupon-input:focus {
    outline: none;
    border-color: var(--accent);
}

.coupon-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.coupon-btn {
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.coupon-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.coupon-status {
    margin-top: 8px;
    font-size: 12px;
}

.coupon-status.error {
    color: #ef4444;
}

.coupon-status.success {
    color: var(--success);
}

.coupon-status.loading {
    color: var(--text-muted);
}

.coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--success-soft);
    border-radius: 8px;
    margin-top: 8px;
}

.coupon-applied-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--success);
}

.coupon-remove {
    background: none;
    border: none;
    color: var(--success);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
}

.coupon-remove:hover {
    opacity: 0.7;
}

/* Payment Type Selection (Premium Only) */
.payment-type-grid {
    display: grid;
    gap: 10px;
}

.payment-type-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-type-option:hover {
    border-color: var(--border-hover);
}

.payment-type-option.selected {
    border-color: var(--accent);
    background: rgba(45, 212, 191, 0.08);
}

.payment-type-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.payment-type-option.selected .payment-type-radio {
    border-color: var(--accent);
}

.payment-type-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.payment-type-option.selected .payment-type-radio::after {
    opacity: 1;
}

.payment-type-info {
    flex: 1;
}

.payment-type-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.payment-type-badge {
    padding: 2px 8px;
    background: var(--accent);
    color: var(--bg);
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.payment-type-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.payment-type-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    flex-shrink: 0;
}

/* Billing Form */
.billing-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: grid;
    gap: 14px;
}

@media (min-width: 480px) {
    .form-row.two-col {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group label .required {
    color: var(--accent);
}

.form-group label .optional {
    color: var(--text-muted);
    font-weight: 400;
}

.form-group input {
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group input.error {
    border-color: #ef4444;
}

.form-error {
    font-size: 11px;
    color: #ef4444;
}

/* GDPR Consent */
.gdpr-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: 8px;
}

.gdpr-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.gdpr-checkbox label {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
}

.gdpr-checkbox label a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Order Summary */
.order-summary {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
}

.summary-line.addon {
    color: var(--text-secondary);
    padding-left: 16px;
}

.summary-line.discount {
    color: var(--success);
}

.summary-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 0;
    font-size: 18px;
    font-weight: 700;
}

.summary-deposit-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    padding: 10px;
    background: var(--bg);
    border-radius: 6px;
}

/* Payment Methods */
.payment-methods-grid {
    display: grid;
    gap: 10px;
}

.payment-method-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method-btn:hover:not(:disabled) {
    border-color: var(--accent);
    background: rgba(45, 212, 191, 0.08);
    transform: translateY(-1px);
}

.payment-method-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-method-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-method-info {
    flex: 1;
    text-align: left;
}

.payment-method-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.payment-method-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.checkout-help {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 0 0;
}

.checkout-help a {
    color: var(--accent);
    text-decoration: none;
}

.checkout-help a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Error State */
.checkout-error {
    text-align: center;
    padding: 60px 24px;
}

.checkout-error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.checkout-error h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.checkout-error p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.checkout-error .btn {
    display: inline-flex;
}

/* Loading State */
.checkout-loading {
    text-align: center;
    padding: 80px 24px;
}

.checkout-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.checkout-loading p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Back Link */
.checkout-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.checkout-back:hover {
    color: var(--accent);
}

.checkout-back svg {
    width: 16px;
    height: 16px;
}

/* Turnstile Container */
.turnstile-container {
    display: flex;
    justify-content: center;
    margin: 12px 0;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .checkout-sidebar {
        order: -1;
    }

    .package-summary {
        padding: 16px;
    }

    .package-price-current {
        font-size: 24px;
    }

    .checkout-card {
        padding: 16px;
    }

    .checkout-card-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    /* Infrastructure addons mobile */
    .infra-header {
        padding: 10px;
    }

    .infra-details {
        padding: 10px;
    }

    .infra-options {
        flex-direction: column;
    }

    .infra-option {
        width: 100%;
        justify-content: space-between;
    }

    /* Addon grid mobile */
    .addon-item-compact {
        padding: 10px;
    }

    .addon-item-compact .addon-desc {
        display: none;
    }

    /* Summary features mobile */
    .summary-features {
        padding: 8px 10px;
    }

    .summary-features span {
        font-size: 11px;
    }

    /* Form mobile */
    .form-group input {
        padding: 14px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .billing-form {
        gap: 12px;
    }

    /* Payment buttons mobile */
    .payment-method-btn {
        padding: 14px;
    }

    /* Package selector mobile */
    .package-selector-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .package-selector-dropdown {
        min-width: 160px;
    }
}

/* ============================
   Order Confirmation Styles
   ============================ */

.order-confirmation {
    max-width: 800px;
    margin: 0 auto;
}

.confirm-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.confirm-logo {
    font-size: 22px;
    font-weight: 700;
}

.confirm-logo span {
    color: var(--accent);
}

.confirm-order-badge {
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 10px 14px;
    text-align: right;
}

.confirm-badge-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.confirm-badge-number {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

/* Success Section */
.confirm-success {
    text-align: center;
    margin-bottom: 32px;
}

.confirm-success-icon {
    width: 64px;
    height: 64px;
    background: var(--success);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}

.confirm-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.confirm-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Grid */
.confirm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .confirm-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.confirm-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.confirm-card-accent {
    border-color: var(--accent);
}

.confirm-card-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Customer Info */
.confirm-customer-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.confirm-customer-details {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.confirm-oib {
    font-family: 'SF Mono', 'Consolas', monospace;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 6px;
}

/* Package Info */
.confirm-package-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.confirm-package-desc {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Order Items */
.confirm-items {
    margin-bottom: 16px;
}

.confirm-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.confirm-item:last-child {
    border-bottom: none;
}

.confirm-price {
    font-family: 'SF Mono', 'Consolas', monospace;
    color: var(--text-secondary);
}

.confirm-discount {
    color: var(--success);
}

.confirm-badge-free {
    background: var(--success);
    color: var(--bg);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Total */
.confirm-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 2px solid var(--border);
    font-weight: 600;
}

.confirm-total-amount {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
}

/* Payment */
.confirm-payment {
    display: flex;
    align-items: center;
    gap: 12px;
}

.confirm-payment-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.confirm-payment-method {
    font-weight: 600;
    font-size: 14px;
}

.confirm-payment-status {
    color: var(--text-muted);
    font-size: 12px;
}

/* Steps */
.confirm-steps {
    display: flex;
    flex-direction: column;
}

.confirm-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.confirm-step:last-child {
    border-bottom: none;
}

.confirm-step-num {
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.confirm-step-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.confirm-step-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Actions */
.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 24px 0;
}

/* Footer */
.confirm-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

.confirm-footer a {
    color: var(--accent);
    text-decoration: none;
}

/* Print Styles */
@media print {
    .order-confirmation {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .confirm-actions {
        display: none;
    }

    .header, .footer {
        display: none;
    }
}

/* ========================================
   QUOTE CHECKOUT MODE STYLES
   ======================================== */

.quote-checkout-badge {
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.quote-checkout-badge .quote-id {
    font-family: monospace;
    font-size: 13px;
    color: #8b5cf6;
}

/* Quote Items in Checkout */
.quote-checkout-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.quote-checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.quote-checkout-item:last-child {
    border-bottom: none;
}

.quote-checkout-item.discount {
    color: var(--success);
}

.quote-checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 0;
    margin-top: 8px;
    border-top: 2px solid var(--border);
    font-size: 18px;
    font-weight: 700;
    color: #8b5cf6;
}

/* Quote Payment Terms Card */
.quote-payment-terms {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quote-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.quote-payment-row.muted {
    color: var(--text-muted);
}

.quote-payment-now {
    font-weight: 700;
    font-size: 18px;
    color: #8b5cf6;
}

/* Summary Deposit Note */
.summary-deposit-note {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.summary-deposit-note strong {
    color: #8b5cf6;
}
