
/* ========================================================
   FULL WIDTH LAYOUT (REMOVED INNER CART SIDEBAR)
   ======================================================== */
#order-standard_cart,
.hz-fullwidth-cart {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#order-standard_cart > .row,
.hz-fullwidth-cart > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block !important;
    width: 100% !important;
}

#order-standard_cart .cart-sidebar,
.hz-fullwidth-cart .cart-sidebar {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

#order-standard_cart .cart-body,
.hz-fullwidth-cart .cart-body {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hetzner Cloud Configurator Stylesheet */
:root {
    --hz-red: #d50c2d;
    --hz-red-hover: #b80a26;
    --hz-red-light: #fff1f2;
    --hz-dark: #0f172a;
    --hz-slate: #1e293b;
    --hz-gray: #64748b;
    --hz-border: #e2e8f0;
    --hz-bg: #f8fafc;
    --hz-card-bg: #ffffff;
    --hz-green: #10b981;
    --hz-green-light: #ecfdf5;
    --hz-blue: #0284c7;
    --hz-blue-light: #f0f9ff;
    --hz-orange: #f59e0b;
    --hz-orange-light: #fffbeb;
    --hz-radius: 12px;
}

.hz-configurator {
    direction: rtl;
    text-align: right;
    font-family: inherit;
    margin-bottom: 90px; /* Space for sticky order bar */
}

/* Hero Header */
.hz-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--hz-radius);
    padding: 24px 28px;
    color: #fff;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2);
    position: relative;
    overflow: hidden;
}
.hz-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--hz-red);
}
.hz-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(213, 12, 45, 0.2);
    border: 1px solid rgba(213, 12, 45, 0.4);
    color: #fca5a5;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}
.hz-hero-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #fff;
}
.hz-hero-desc {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0 0 16px 0;
    line-height: 1.6;
}
.hz-rate-tickers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hz-ticker-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12.5px;
}
.hz-ticker-pill strong {
    color: #38bdf8;
}

/* Step Section Headings */
.hz-section {
    margin-bottom: 28px;
}
.hz-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--hz-border);
}
.hz-section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--hz-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hz-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--hz-red);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
}

/* Locations Grid */
.hz-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}
.hz-location-card {
    background: var(--hz-card-bg);
    border: 2px solid var(--hz-border);
    border-radius: var(--hz-radius);
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}
.hz-location-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.hz-location-card.active {
    border-color: var(--hz-red);
    background: var(--hz-red-light);
    box-shadow: 0 0 0 3px rgba(213, 12, 45, 0.15);
}
.hz-loc-flag {
    font-size: 24px;
    margin-bottom: 6px;
    display: block;
}
.hz-loc-city {
    font-size: 14px;
    font-weight: 700;
    color: var(--hz-dark);
    margin-bottom: 2px;
}
.hz-loc-meta {
    font-size: 11px;
    color: var(--hz-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hz-loc-stock-badge {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}
.hz-loc-stock-badge.has-stock {
    background: var(--hz-green-light);
    color: var(--hz-green);
}

/* Architecture Tabs */
.hz-arch-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 16px;
    scrollbar-width: thin;
}
.hz-arch-tab {
    padding: 10px 18px;
    background: #fff;
    border: 1px solid var(--hz-border);
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--hz-slate);
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}
.hz-arch-tab:hover {
    background: #f1f5f9;
}
.hz-arch-tab.active {
    background: var(--hz-dark);
    color: #fff;
    border-color: var(--hz-dark);
}
.hz-arch-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
}

/* Filtering Toolbar */
.hz-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    background: #fff;
    padding: 10px 14px;
    border: 1px solid var(--hz-border);
    border-radius: 8px;
}
.hz-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.hz-search-input {
    padding: 6px 12px;
    border: 1px solid var(--hz-border);
    border-radius: 6px;
    font-size: 12.5px;
    width: 180px;
    font-family: inherit;
}
.hz-checkbox-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--hz-slate);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hz-refresh-btn {
    background: none;
    border: 1px solid var(--hz-border);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--hz-slate);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-weight: 600;
}
.hz-refresh-btn:hover {
    background: #f1f5f9;
    color: var(--hz-red);
}

/* Server Cards Grid */
.hz-servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
}
.hz-server-card {
    background: var(--hz-card-bg);
    border: 2px solid var(--hz-border);
    border-radius: var(--hz-radius);
    padding: 18px 20px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hz-server-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.hz-server-card.selected {
    border-color: var(--hz-red);
    box-shadow: 0 0 0 3px rgba(213, 12, 45, 0.12);
}
.hz-server-card.out-of-stock {
    background: #fafafa;
    border-color: #e5e7eb;
}
.hz-server-card.out-of-stock .hz-srv-name,
.hz-server-card.out-of-stock .hz-srv-spec-val {
    color: #94a3b8;
}

.hz-srv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.hz-srv-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--hz-dark);
}
.hz-srv-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
}
.hz-srv-tag.intel { background: #e0f2fe; color: #0369a1; }
.hz-srv-tag.amd { background: #fee2e2; color: #b91c1c; }
.hz-srv-tag.arm { background: #dcfce7; color: #15803d; }
.hz-srv-tag.dedicated { background: #fef3c7; color: #b45309; }
.hz-srv-tag.storage { background: #ede9fe; color: #6d28d9; }

/* Specs Grid inside Card */
.hz-srv-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 14px;
}
.hz-spec-item {
    font-size: 12px;
    color: var(--hz-gray);
}
.hz-spec-item strong {
    color: var(--hz-dark);
    font-weight: 700;
    display: block;
    font-size: 13.5px;
}

/* Stock Status */
.hz-stock-status {
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hz-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    width: fit-content;
}
.hz-stock-badge.available {
    background: var(--hz-green-light);
    color: var(--hz-green);
}
.hz-stock-badge.unavailable {
    background: #fee2e2;
    color: #b91c1c;
}
.hz-alt-locations {
    font-size: 11px;
    font-weight: normal;
    color: var(--hz-gray);
}
.hz-alt-pill {
    cursor: pointer;
    text-decoration: underline;
    color: var(--hz-blue);
    margin: 0 2px;
    font-weight: 600;
}
.hz-alt-pill:hover {
    color: var(--hz-red);
}

/* Pricing Section */
.hz-srv-pricing {
    border-top: 1px dashed var(--hz-border);
    padding-top: 12px;
    margin-bottom: 14px;
}
.hz-price-hourly {
    font-size: 18px;
    font-weight: 800;
    color: var(--hz-dark);
}
.hz-price-hourly small {
    font-size: 12px;
    font-weight: normal;
    color: var(--hz-gray);
}
.hz-price-monthly {
    font-size: 12px;
    color: var(--hz-gray);
    margin-top: 2px;
}
.hz-price-monthly strong {
    color: var(--hz-slate);
}

/* Card Action Button */
.hz-card-btn {
    width: 100%;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    font-family: inherit;
    text-align: center;
}
.hz-card-btn.btn-select {
    background: var(--hz-dark);
    color: #fff;
}
.hz-card-btn.btn-select:hover {
    background: var(--hz-red);
}
.hz-card-btn.btn-selected {
    background: var(--hz-red);
    color: #fff;
}
.hz-card-btn.btn-disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Sticky Bottom Bar */
.hz-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    color: #fff;
    padding: 14px 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    z-index: 1050;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    direction: rtl;
    text-align: right;
    border-top: 3px solid var(--hz-red);
}
.hz-sticky-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.hz-sticky-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}
.hz-sticky-specs {
    font-size: 12px;
    color: #94a3b8;
}
.hz-sticky-prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.hz-sticky-hourly {
    font-size: 20px;
    font-weight: 800;
    color: #38bdf8;
}
.hz-sticky-monthly {
    font-size: 12px;
    color: #cbd5e1;
}
.hz-sticky-cta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hz-btn-order {
    background: var(--hz-red);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(213, 12, 45, 0.4);
}
.hz-btn-order:hover {
    background: var(--hz-red-hover);
    transform: translateY(-1px);
}
.hz-btn-order.disabled {
    background: #475569;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

@media (max-width: 768px) {
    .hz-locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hz-sticky-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 16px;
    }
    .hz-sticky-cta {
        width: 100%;
    }
    .hz-btn-order {
        width: 100%;
        justify-content: center;
    }
}


.hz-tab-count {
    margin-right: 6px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.8;
    background: rgba(15, 23, 42, 0.08);
    color: inherit;
    padding: 1px 7px;
    border-radius: 12px;
    display: inline-block;
}
.hz-arch-tab.active .hz-tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    opacity: 1;
}
