/**
 * Airbnb-style Checkout Styles for QloApps
 */

:root {
    --airbnb-teal: #00A699;
    --airbnb-teal-dark: #008489;
    --airbnb-dark: #222222;
    --airbnb-gray: #717171;
    --airbnb-light-gray: #DDDDDD;
    --airbnb-background: #F7F7F7;
    --airbnb-white: #FFFFFF;
    --airbnb-border: #EBEBEB;
    --airbnb-success: #008A05;
    --airbnb-error: #C13515;
}

#order-opc {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: var(--airbnb-dark);
}

.columns-container {
    background-color: var(--airbnb-white);
}

/* Cards */
#order-opc .card {
    background: var(--airbnb-white);
    border: 1px solid var(--airbnb-light-gray);
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}

#order-opc .card-header {
    background: var(--airbnb-white);
    border-bottom: 1px solid var(--airbnb-border);
    padding: 24px;
}

#order-opc .card-body {
    padding: 24px;
    margin-top: 0 !important;
}

/* Accordion headers */
#order-opc #oprder-opc-accordion .accordion-header {
    font-size: 18px;
    font-weight: 600;
    color: var(--airbnb-dark);
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#order-opc #oprder-opc-accordion .accordion-header span {
    display: flex;
    align-items: center;
    gap: 12px;
}

#order-opc #oprder-opc-accordion .accordion-header span::before {
    content: '';
    width: 28px;
    height: 28px;
    background: var(--airbnb-teal);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

#order-opc #shopping-cart-summary-head .accordion-header span::before { content: '1'; }
#order-opc #guest-info-head .accordion-header span::before { content: '2'; }
#order-opc #order-payment-head .accordion-header span::before { content: '3'; }

#order-opc #oprder-opc-accordion .accordion-left-arrow {
    font-size: 20px;
    color: var(--airbnb-gray);
}

/* Inputs */
#order-opc input.form-control,
#order-opc select,
#order-opc textarea {
    height: 48px;
    border: 1px solid var(--airbnb-light-gray);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    color: var(--airbnb-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--airbnb-white);
}

#order-opc input.form-control:focus,
#order-opc select:focus {
    outline: none;
    border-color: var(--airbnb-dark);
    box-shadow: 0 0 0 2px rgba(34, 34, 34, 0.1);
}

#order-opc label {
    font-size: 14px;
    font-weight: 500;
    color: var(--airbnb-dark);
    margin-bottom: 8px;
}

#order-opc .form-group {
    margin-bottom: 20px;
}

/* Primary buttons */
#order-opc .button-medium,
#order-opc .opc-btn-primary,
#order-opc .btn-default,
#order-opc button[type="submit"]:not(.price_discount_delete) {
    background: linear-gradient(to right, var(--airbnb-teal), var(--airbnb-teal-dark)) !important;
    border: none !important;
    border-radius: 8px !important;
    color: var(--airbnb-white) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 14px 24px !important;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none !important;
}

#order-opc .button-medium:hover,
#order-opc .opc-btn-primary:hover,
#order-opc .btn-default:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 166, 153, 0.4) !important;
}

#order-opc .button-medium > span {
    padding: 0 !important;
    text-transform: none !important;
}

/* Secondary buttons */
#order-opc .btn-edit-guest-info,
#order-opc .opc-btn-default {
    background: var(--airbnb-white) !important;
    border: 1px solid var(--airbnb-dark) !important;
    border-radius: 8px !important;
    color: var(--airbnb-dark) !important;
}

/* Guest info */
#order-opc #guest-info-block div.info-head {
    font-size: 14px;
    color: var(--airbnb-gray);
}

#order-opc #guest-info-block div.info-value {
    font-size: 16px;
    color: var(--airbnb-dark);
    font-weight: 500;
}

/* Room details */
.order-detail-content .product-name a {
    font-size: 20px !important;
    color: var(--airbnb-dark) !important;
    font-weight: 600 !important;
}

.order-detail-content .hotel-location {
    font-size: 14px;
    color: var(--airbnb-gray);
}

.order-detail-content .room_duration_block {
    background: var(--airbnb-background);
    border-radius: 12px;
    padding: 16px;
}

.order-detail-content .room_duration_block_head {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--airbnb-gray);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.order-detail-content .room_duration_block_value {
    font-size: 16px;
    color: var(--airbnb-dark);
    font-weight: 500;
}

.order-detail-content span.room-type-feature {
    background: var(--airbnb-background);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 14px;
    color: var(--airbnb-dark);
}

/* Prices */
.order-detail-content .room_price_detail_block,
.order-detail-content .room_unit_price {
    font-size: 22px;
    color: var(--airbnb-dark);
    font-weight: 600;
}

.order-detail-content .room_unit_price_detail,
.order-detail-content .total_price_detial {
    font-size: 14px;
    color: var(--airbnb-gray);
}

/* Vouchers */
#order-opc .cart_voucher_detail_block {
    background: var(--airbnb-white);
    border: 1px solid var(--airbnb-light-gray);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

#order-opc .cart_voucher_detail_block .cart_voucher_head {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--airbnb-gray);
    font-weight: 600;
    letter-spacing: 0.5px;
}

#order-opc .cart_voucher_detail_block span.cart_discount_name {
    background: #E8F5E9;
    border: 2px dashed var(--airbnb-success);
    color: var(--airbnb-success);
    border-radius: 8px;
}

#order-opc .cart_voucher_detail_block span.voucher_apply_state {
    background: #E8F5E9;
    color: var(--airbnb-success);
    border-radius: 20px;
}

/* Totals */
#order-opc .cart_total_detail_block {
    background: var(--airbnb-white);
    border: 1px solid var(--airbnb-light-gray);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

#order-opc .cart_total_detail_block hr {
    border-color: var(--airbnb-border);
}

#order-opc .cart_total_detail_block .total_discount_block {
    color: var(--airbnb-success);
}

#order-opc .cart_total_detail_block .cart_final_total_block {
    background: var(--airbnb-background);
    margin: 16px -24px -24px -24px;
    padding: 20px 24px;
    border-radius: 0 0 12px 12px;
}

#order-opc .cart_total_detail_block .cart_final_total_block > .cart_total_values {
    font-size: 24px !important;
    color: var(--airbnb-dark) !important;
    font-weight: 600;
}

/* Payment methods */
#order-opc .payment_content {
    border: 1px solid var(--airbnb-light-gray);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease;
}

#order-opc .payment_content:hover {
    border-color: var(--airbnb-dark);
}

#order-opc .payment_content label {
    font-size: 16px;
    font-weight: 500;
    color: var(--airbnb-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

/* Checkboxes and radios */
#order-opc input[type="checkbox"],
#order-opc input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--airbnb-teal);
}

/* Alerts */
#order-opc .alert {
    border-radius: 12px;
    padding: 16px 20px;
    border: none;
}

#order-opc .alert-warning { background: #FFF8E1; color: #F57C00; }
#order-opc .alert-danger { background: #FFEBEE; color: var(--airbnb-error); }
#order-opc .alert-success { background: #E8F5E9; color: var(--airbnb-success); }

/* Links */
#order-opc .already_registered_block #openLoginFormBlock,
#order-opc #login_form_content #idAccountChoice,
#order-opc .step-edit > a {
    color: var(--airbnb-teal) !important;
    font-weight: 600;
}

/* Separators */
#order-opc .strikethrough {
    border-bottom-color: var(--airbnb-border);
}

#order-opc .strikethrough span {
    background: var(--airbnb-white);
    color: var(--airbnb-gray);
}

/* Remove room */
.order-detail-content .room_remove_block,
.order-detail-content .product_remove_block {
    color: var(--airbnb-gray);
    text-decoration: underline;
}

.order-detail-content .room_remove_block:hover {
    color: var(--airbnb-error);
}

/* Room images */
.order-detail-content .product-img-block img {
    border-radius: 12px;
}

/* Login form */
#order-opc #login_form {
    background: var(--airbnb-white);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--airbnb-border);
}

#order-opc #login_form h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--airbnb-dark);
}

/* Select styling */
#order-opc select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23222222' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Responsive */
@media (max-width: 767px) {
    #order-opc .card,
    #order-opc .cart_total_detail_block,
    #order-opc .cart_voucher_detail_block {
        border-radius: 0;
        margin-left: -15px;
        margin-right: -15px;
    }
}
