/* GauGrih Checkout Details (Shipping Address) */
.gg-checkout-page {
    background:
        radial-gradient(ellipse at top, rgba(255, 236, 210, 0.45), transparent 50%),
        linear-gradient(180deg, #faf7f2 0%, #fff 42%, #faf7f2 100%);
    padding-bottom: 48px;
    min-height: 55vh;
}

.gg-checkout-page > .container {
    padding-top: 8px;
}

.gg-checkout-page .gg-checkout-title {
    color: #5c2e16 !important;
    font-weight: 800 !important;
    font-size: 26px !important;
    letter-spacing: 0.01em;
    margin-bottom: 8px !important;
}

/* Steps */
.gg-checkout-steps {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: none;
    margin: 0 0 18px;
    padding: 18px 16px 16px !important;
    background: #fff;
    border: 1px solid #efe6da;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(80, 40, 10, 0.04);
    box-sizing: border-box;
}

.gg-checkout-steps.checkout-steps.steps.steps-light {
    display: flex !important;
}

.gg-checkout-steps .gg-step {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none !important;
    color: #8a7a6c !important;
    pointer-events: auto;
}

.gg-checkout-steps .gg-step.is-current {
    pointer-events: none;
}

.gg-checkout-steps .gg-step-node {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fffdf9;
    border: 2px solid #efe6da;
    color: #8a7a6c;
    font-weight: 800;
    font-size: 14px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    z-index: 1;
}

.gg-checkout-steps .gg-step-num {
    line-height: 1;
}

.gg-checkout-steps .gg-step-check {
    display: none;
    line-height: 1;
    font-size: 14px;
}

.gg-checkout-steps .gg-step-label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: inherit;
    padding: 0 !important;
    max-width: 140px;
}

.gg-checkout-steps .gg-step-line {
    flex: 0 0 auto;
    width: clamp(28px, 8vw, 72px);
    height: 3px;
    margin-top: 18px;
    border-radius: 999px;
    background: #efe6da;
    align-self: flex-start;
}

.gg-checkout-steps .gg-step-line.is-active {
    background: #c4783a;
}

/* Completed (done but not current) */
.gg-checkout-steps .gg-step.is-done:not(.is-current) .gg-step-node {
    background: #c4783a;
    border-color: #c4783a;
    color: #fff;
}

.gg-checkout-steps .gg-step.is-done:not(.is-current) .gg-step-num {
    display: none;
}

.gg-checkout-steps .gg-step.is-done:not(.is-current) .gg-step-check {
    display: inline-flex;
}

.gg-checkout-steps .gg-step.is-done:not(.is-current) {
    color: #5c2e16 !important;
}

/* Current step */
.gg-checkout-steps .gg-step.is-current .gg-step-node {
    background: #5c2e16;
    border-color: #5c2e16;
    color: #fff;
    box-shadow: 0 6px 16px rgba(92, 46, 22, 0.25);
}

.gg-checkout-steps .gg-step.is-current .gg-step-check {
    display: none;
}

.gg-checkout-steps .gg-step.is-current .gg-step-num {
    display: inline;
}

.gg-checkout-steps .gg-step.is-current {
    color: #5c2e16 !important;
}

.gg-checkout-steps .gg-step.is-current .gg-step-label {
    font-weight: 800;
}

.gg-checkout-steps .gg-step:hover:not(.is-current) .gg-step-node {
    border-color: #c4783a;
    color: #c4783a;
}

/* Kill old theme step chrome inside our bar */
.gg-checkout-steps .step-progress,
.gg-checkout-steps .step-count,
.gg-checkout-steps .step-item {
    all: unset;
}

@media (max-width: 575.98px) {
    .gg-checkout-steps {
        padding: 14px 10px 12px !important;
        margin-bottom: 14px;
    }

    .gg-checkout-steps .gg-step-node {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .gg-checkout-steps .gg-step-line {
        width: clamp(16px, 6vw, 36px);
        margin-top: 15px;
    }

    .gg-checkout-steps .gg-step-label {
        font-size: 11px;
        max-width: 90px;
    }
}

/* Section headings */
.gg-checkout-page h4.fs-18,
.gg-checkout-page .billing-methods_label h4 {
    color: #5c2e16 !important;
    font-weight: 800 !important;
}

/* Address cards */
.gg-checkout-page .card.__card,
.gg-checkout-page form.card.__card {
    background: #fff !important;
    border: 1px solid #efe6da !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 22px rgba(80, 40, 10, 0.05) !important;
    overflow: hidden;
}

.gg-checkout-page .list-group-item {
    border-color: #efe6da !important;
    background: transparent !important;
    padding: 16px !important;
}

.gg-checkout-page .list-group-item.add-another-address,
.gg-checkout-page .list-group-item.action-billing-address-hide {
    border: 0 !important;
}

.gg-checkout-page .form-label,
.gg-checkout-page label {
    color: #5c2e16;
    font-weight: 600;
    font-size: 13px;
}

.gg-checkout-page .text-danger {
    color: #c4783a !important;
}

.gg-checkout-page .form-control,
.gg-checkout-page select.form-control,
.gg-checkout-page textarea.form-control {
    border: 1px solid #efe6da !important;
    border-radius: 10px !important;
    background: #fffdf9 !important;
    color: #5c2e16 !important;
    min-height: 42px;
    box-shadow: none !important;
    font-size: 14px;
}

.gg-checkout-page .form-control:focus,
.gg-checkout-page select.form-control:focus,
.gg-checkout-page textarea.form-control:focus {
    border-color: #c4783a !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(196, 120, 58, 0.12) !important;
}

.gg-checkout-page .form-control::placeholder {
    color: #a89888;
}

.gg-checkout-page .dropdown-toggle.form-control {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 160px;
    background: #fff !important;
    font-weight: 600;
}

.gg-checkout-page .saved-address-dropdown {
    border: 1px solid #efe6da !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(80, 40, 10, 0.12) !important;
    padding: 6px !important;
    max-height: 260px;
    overflow-y: auto;
}

.gg-checkout-page .saved-address-dropdown .dropdown-item {
    border-radius: 10px;
    padding: 10px 12px !important;
    white-space: normal;
}

.gg-checkout-page .saved-address-dropdown .dropdown-item:hover,
.gg-checkout-page .saved-address-dropdown .dropdown-item.active {
    background: #fff7ee !important;
    color: #5c2e16 !important;
}

.gg-checkout-page .form-check-input {
    accent-color: #c4783a;
    width: 16px;
    height: 16px;
}

.gg-checkout-page .form-check-label {
    color: #5c4a3c;
    font-weight: 600;
}

.gg-checkout-page .alert--info {
    background: #fffdf9;
    border: 1px solid #efe6da;
    border-radius: 12px;
    color: #5c4a3c;
    padding: 12px 14px;
}

.gg-checkout-page .bootstrap-select .dropdown-toggle,
.gg-checkout-page .bootstrap-select > .dropdown-toggle {
    border: 1px solid #efe6da !important;
    border-radius: 10px !important;
    background: #fffdf9 !important;
    color: #5c2e16 !important;
}

.gg-checkout-page #location_map_canvas {
    border-radius: 12px !important;
    border: 1px solid #efe6da !important;
    overflow: hidden;
}

.gg-checkout-page .btn--primary,
.gg-checkout-page button.btn--primary,
.gg-checkout-page a.btn--primary {
    background: #5c2e16 !important;
    border-color: #5c2e16 !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    min-height: 44px;
    box-shadow: 0 6px 16px rgba(92, 46, 22, 0.18);
}

.gg-checkout-page .btn--primary:hover {
    background: #c4783a !important;
    border-color: #c4783a !important;
}

.gg-checkout-page .btn-outline,
.gg-checkout-page .btn-outline-primary {
    border: 1px solid #d9cbb8 !important;
    color: #5c2e16 !important;
    background: #fff !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}

.gg-checkout-page .btn-outline:hover,
.gg-checkout-page .btn-outline-primary:hover {
    border-color: #c4783a !important;
    color: #c4783a !important;
    background: #fffdf9 !important;
}

/* Order summary on checkout */
.gg-checkout-page .gg-cart-summary .__cart-total,
.gg-checkout-page .gg-cart-summary .cart_total,
.gg-checkout-page .order-summery-aside .__cart-total,
.gg-checkout-page .order-summery-aside .cart_total {
    background: #fff !important;
    border: 1px solid #efe6da !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(80, 40, 10, 0.06) !important;
    padding: 18px !important;
}

.gg-checkout-page .order-summery-aside .cart_title,
.gg-checkout-page .gg-cart-summary .cart_title {
    color: #8a7a6c !important;
}

.gg-checkout-page .order-summery-aside .cart_value,
.gg-checkout-page .gg-cart-summary .cart_value {
    color: #5c2e16 !important;
    font-weight: 700 !important;
}

.gg-checkout-page .order-summery-aside .text-primary,
.gg-checkout-page .gg-cart-summary .text-primary {
    color: #c4783a !important;
}

.gg-checkout-page .order-summery-aside .btn--primary,
.gg-checkout-page .gg-cart-summary .btn--primary {
    background: #5c2e16 !important;
    border-color: #5c2e16 !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
}

.gg-checkout-page .order-summery-aside input.form-control,
.gg-checkout-page .gg-cart-summary input.form-control {
    border: 1px solid #efe6da !important;
    border-radius: 10px !important;
}

@media (max-width: 991.98px) {
    .gg-checkout-page {
        padding-bottom: 32px;
    }

    .gg-checkout-page .gg-checkout-title {
        font-size: 22px !important;
        text-align: center;
    }
}

/* ---------- Payment method cards ---------- */
.gg-payment-page .gg-payment-panel {
    background: #fff !important;
    border: 1px solid #efe6da !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 22px rgba(80, 40, 10, 0.05) !important;
    overflow: hidden;
}

.gg-payment-page .gg-payment-panel > .card-body {
    padding: 20px 18px !important;
}

.gg-payment-heading {
    color: #5c2e16 !important;
    font-weight: 800 !important;
    font-size: 16px !important;
}

.gg-payment-back {
    color: #c4783a !important;
    text-decoration: none !important;
    font-size: 13px;
}

.gg-payment-back:hover {
    color: #5c2e16 !important;
}

.gg-payment-hint {
    color: #8a7a6c !important;
    font-size: 13px;
    font-weight: 500;
}

.gg-payment-method-row {
    gap: 12px !important;
}

.gg-payment-method-wrap {
    flex: 1 1 200px;
    max-width: 280px;
}

.gg-payment-method-card,
.gg-payment-gateway-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #efe6da !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-height: 56px;
}

button.gg-payment-method-card,
button.gg-payment-wallet-btn {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    color: inherit;
}

.gg-payment-method-card:hover,
.gg-payment-gateway-card:hover {
    border-color: #e2d2bf !important;
    background: #fffdf9 !important;
}

.gg-payment-method-card img,
.gg-payment-gateway-card img {
    width: 28px !important;
    height: 22px !important;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
}

.gg-payment-method-title {
    color: #5c2e16 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3;
    margin: 0;
}

.gg-payment-method-card input[type='radio'],
.gg-payment-gateway-card input[type='radio'],
.gg-payment-page .gg-payment-native-radio,
.gg-payment-page input.gg-payment-native-radio {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip: rect(0, 0, 0, 0) !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.gg-payment-method-radio {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid #d9cbb8;
    position: relative;
    background: #fff;
    font-style: normal;
}

.gg-payment-method-radio::before,
.gg-payment-method-radio::after {
    box-shadow: none !important;
}

.gg-payment-method-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #c4783a;
    transform: scale(0);
    transition: transform 0.15s ease;
}

.gg-payment-method-card input[type='radio']:checked ~ .gg-payment-method-radio,
.gg-payment-gateway-card input[type='radio']:checked ~ .gg-payment-method-radio {
    border-color: #c4783a;
}

.gg-payment-method-card input[type='radio']:checked ~ .gg-payment-method-radio::after,
.gg-payment-gateway-card input[type='radio']:checked ~ .gg-payment-method-radio::after {
    transform: scale(1);
    background: #c4783a !important;
    box-shadow: none !important;
}

.gg-payment-method-card:has(input[type='radio']:checked),
.gg-payment-gateway-card:has(input[type='radio']:checked) {
    border-color: #c4783a !important;
    background: #fff7ee !important;
    box-shadow: 0 0 0 3px rgba(196, 120, 58, 0.1) !important;
}

.gg-bring-change {
    background: #fffdf9 !important;
    border: 1px solid #efe6da;
    border-radius: 12px !important;
    color: #5c4a3c;
    padding: 14px !important;
}

.gg-payment-page #bring_change_amount_btn,
.gg-payment-page .text--primary {
    color: #c4783a !important;
    font-weight: 700 !important;
}

.gg-online-payment-grid > [class*='col-'] {
    display: flex;
}

.gg-online-payment-grid .digital_payment {
    width: 100%;
    margin: 0;
}

.gg-offline-payment {
    width: 100%;
}

.gg-offline-payment-toggle {
    margin-bottom: 0 !important;
}

.gg-offline-info {
    color: #c4783a;
    display: inline-flex;
    align-items: center;
}

.gg-offline-payment .pay_offline_card {
    margin-top: 12px;
    padding: 4px 2px 2px;
}

.gg-offline-payment .offline_payment_button.btn-light {
    background: #fff !important;
    border: 1.5px solid #efe6da !important;
    border-radius: 10px !important;
    color: #5c2e16 !important;
    font-weight: 600 !important;
    padding: 10px 16px !important;
}

.gg-offline-payment .offline_payment_button.btn-light:hover {
    border-color: #c4783a !important;
    color: #c4783a !important;
    background: #fff7ee !important;
}

.gg-payment-page .feature_header,
.gg-payment-page .gg-checkout-title {
    color: #5c2e16 !important;
    font-weight: 800 !important;
}

.gg-payment-modal .modal-content {
    border: 1px solid #efe6da !important;
    border-radius: 14px !important;
    overflow: hidden;
}

.gg-payment-modal .modal-title {
    color: #5c2e16 !important;
    font-weight: 800 !important;
}

.gg-payment-modal .modal-footer .btn-secondary {
    border-radius: 10px !important;
    border-color: #efe6da !important;
    color: #5c2e16 !important;
    background: #fff !important;
}

.gg-payment-modal .modal-footer .btn--primary {
    background: #5c2e16 !important;
    border-color: #5c2e16 !important;
    border-radius: 10px !important;
}

@media (max-width: 575.98px) {
    .gg-payment-method-wrap {
        flex: 1 1 100%;
        max-width: none;
    }
}

/* ---------- Order complete ---------- */
.gg-complete-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.gg-complete-page > .container {
    width: 100%;
}

.gg-complete-card {
    background: #fff;
    border: 1px solid #efe6da;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(80, 40, 10, 0.06);
    padding: 40px 28px 36px;
    position: relative;
    overflow: hidden;
}

.gg-complete-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #c4783a, #5c2e16);
}

.gg-complete-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #c4783a 0%, #5c2e16 100%);
    box-shadow: 0 10px 24px rgba(196, 120, 58, 0.28);
    animation: gg-complete-pop 0.45s ease both;
}

.gg-complete-eyebrow {
    color: #c4783a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
}

.gg-complete-title {
    color: #5c2e16;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 12px;
}

.gg-complete-text {
    color: #8a7a6c;
    font-size: 14px;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto 18px;
}

.gg-complete-orders {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 24px;
}

.gg-complete-order-id {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff7ee;
    border: 1px solid #f0d9c0;
    color: #5c2e16;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.gg-complete-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.gg-complete-btn-primary {
    min-width: 220px;
    background: #5c2e16 !important;
    border: 1px solid #5c2e16 !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    padding: 11px 22px !important;
}

.gg-complete-btn-primary:hover {
    background: #c4783a !important;
    border-color: #c4783a !important;
    color: #fff !important;
}

.gg-complete-btn-secondary {
    min-width: 220px;
    background: #fff !important;
    border: 1.5px solid #efe6da !important;
    color: #5c2e16 !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    padding: 10px 22px !important;
}

.gg-complete-btn-secondary:hover {
    border-color: #c4783a !important;
    color: #c4783a !important;
    background: #fffdf9 !important;
}

@keyframes gg-complete-pop {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 575.98px) {
    .gg-complete-card {
        padding: 32px 18px 28px;
        border-radius: 14px;
    }

    .gg-complete-title {
        font-size: 22px;
    }

    .gg-complete-btn-primary,
    .gg-complete-btn-secondary {
        width: 100%;
        min-width: 0;
    }
}
