.d-none{
    display: none;
}

.hocy-cart-header {
    margin-bottom: 20px;
}

.hocy-cart-badge {
    display: inline-block;
    min-width: 24px;
    padding: 2px 8px;
    border-radius: 20px;
    background: #dc3545;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
}

.hocy-add-more-btn {
    display: inline-block;
    margin-left: 10px;
    padding: 6px 12px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
}

.error {
    color: red;
}

.hocy-add-more-btn:hover {
    color: #fff;
    opacity: .9;
}


.hocy-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.hocy-cart-table th,
.hocy-cart-table td {
    border: 1px solid #ddd;
    padding: 12px;
    vertical-align: middle;
}

.hocy-cart-table th {
    background: #f5f5f5;
    text-align: left;
    font-weight: 600;
}

.hocy-cart-summary {
    width: 100%;
    border-collapse: collapse;
}

.hocy-cart-summary td {
    border: 1px solid #ddd;
    padding: 12px;
}

.qty-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-box form {
    margin: 0;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 16px;
}

.qty-value {
    width: 60px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    background: #fff;
}

.cart-img {
    width: 80px;
    max-width: 80px;
    height: auto;
}

.text-right {
    text-align: right;
}

.amount-col {
    text-align: right;
    white-space: nowrap;
}

.price-col {
    white-space: nowrap;
}

.total-row {
    font-weight: bold;
    font-size: 16px;
}


/* Address form */
.checkout-heading {
    margin: 30px 0 20px;
    font-size: 22px;
}

.checkout-warning {
    color: #dc3545;
    font-size: 14px;
    margin-left: 10px;
    font-weight: normal;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
}

.iti {
    width: 100% !important;
    display: block;
}

.iti input,
.iti input[type="tel"] {
    width: 100% !important;
}

.iti__search-input::placeholder {
    padding-left: 0;
}

.iti__search-input+.iti__search-icon,
.iti__search-icon {
    display: none !important;
}

.form-group .iti {
    width: 100% !important;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 42px;
    padding: 10px 12px;
    border: 1px solid green;
    border-radius: 5px;
    box-sizing: border-box;
}

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 42px !important;
    border: 1px solid green !important;
    border-radius: 5px !important;
}

.select2-container--default .select2-selection__rendered {
    line-height: 40px !important;
}

.select2-container--default .select2-selection__arrow {
    height: 40px !important;
}

.select2-dropdown {
    border: 1px solid green !important;
}

.select2-search__field {
    border: 1px solid #ddd !important;
    padding: 8px !important;
}


/* Payment Gateways */

.hocy-payment-methods {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.hocy-payment-methods h4 {
    margin-bottom: 15px;
}

.payment-option {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
}

.payment-option input {
    margin-right: 8px;
}

.checkout-btn-wrap {
    margin-top: 20px;
}

.hocy-checkout-btn {
    background: #28a745;
    color: #fff;
    border: 0;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.payment-card {
    display: block;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
}

.payment-card input[type="radio"] {
    margin-right: 10px;
}

.payment-title {
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
}

.payment-body {
    display: none;
    margin-top: 15px;
    padding-left: 35px;
}

/* Accordion */

.payment-card input[type="radio"]:checked~.payment-body {
    display: block;
}

.gift-card-input {
    width: 100%;
    max-width: 100%;
    height: 55px;
    padding: 10px 15px;
    border: 2px dotted #000;
    font-size: 16px;
    box-sizing: border-box;
}

.gateway-logo {
    width: 60px;
    height: auto;
    margin-right: 10px;
    vertical-align: middle;
}


/* ========================= */
/* MOBILE RESPONSIVE STYLES   */
/* ========================= */

@media (max-width: 768px) {

    .checkout-form-grid {
        grid-template-columns: 1fr;
    }

    .hocy-cart-header h3 {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-end;
    }

    /* Stack cart table into cards */
    .hocy-cart-table thead {
        display: none;
    }

    .hocy-cart-table,
    .hocy-cart-table tbody,
    .hocy-cart-table tr,
    .hocy-cart-table td {
        display: block;
        width: 100%;
    }

    .hocy-cart-table tr {
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 10px;
        position: relative;
    }

    .hocy-cart-table td {
        border: none;
        padding: 6px 0 6px 110px;
        text-align: left !important;
        white-space: normal;
        min-height: 20px;
    }

    /* Labels for each column on mobile */
    .hocy-cart-table td:nth-of-type(1)::before { content: "Photo"; }
    .hocy-cart-table td:nth-of-type(2)::before { content: "Product"; }
    .hocy-cart-table td:nth-of-type(3)::before { content: "PV"; }
    .hocy-cart-table td:nth-of-type(4)::before { content: "Quantity"; }
    .hocy-cart-table td:nth-of-type(5)::before { content: "Price"; }
    .hocy-cart-table td:nth-of-type(6)::before { content: "Amount"; }

    .hocy-cart-table td::before {
        position: absolute;
        left: 10px;
        font-weight: 600;
        color: #666;
        width: 95px;
    }

    /* Photo cell: no label, image floats left */
    .hocy-cart-table td:nth-of-type(1) {
        padding: 6px 0;
        text-align: center !important;
    }

    .hocy-cart-table td:nth-of-type(1)::before {
        content: "";
    }

    .cart-img {
        width: 70px;
        max-width: 70px;
    }

    .qty-box {
        justify-content: flex-start;
    }

    .amount-col,
    .price-col {
        white-space: normal;
    }

    /* Summary table */
    .hocy-cart-summary tr {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .hocy-cart-summary td {
        display: none;
    }

    .hocy-cart-summary td:nth-child(4),
    .hocy-cart-summary td:nth-child(5) {
        display: block;
        border: none;
        padding: 6px 0;
        width: auto;
    }

    .hocy-cart-summary tr {
        border-bottom: 1px solid #ddd;
        padding: 6px 0;
    }

    .hocy-cart-summary tr.total-row {
        border-bottom: none;
        font-size: 17px;
    }

    /* Checkout form */
    .checkout-heading {
        font-size: 18px;
        margin: 20px 0 15px;
    }

    .checkout-warning {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    /* Payment section */
    .hocy-payment-methods {
        padding: 14px;
    }

    .payment-card {
        padding: 14px;
    }

    .payment-title {
        font-size: 17px;
    }

    .payment-body {
        padding-left: 0;
        margin-top: 12px;
    }

    .gateway-logo {
        width: 45px;
    }

    .gift-card-input {
        height: 48px;
        font-size: 14px;
    }

    .hocy-checkout-btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .qty-btn,
    .qty-value {
        height: 32px;
    }

    .qty-btn {
        width: 32px;
    }

    .qty-value {
        width: 50px;
    }

    .hocy-cart-header h3 {
        font-size: 18px;
    }

    .hocy-add-more-btn {
        font-size: 12px;
        padding: 5px 10px;
    }
}