/* Gnist Booking - Strawberry Style Checkout */

/* Import Google Sans */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&display=swap');

/* Override WooCommerce default styles */
.woocommerce-checkout {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Main checkout layout - two columns */
.woocommerce-checkout .col2-set {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 80px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Booking summary - left side */
.gnist-checkout-summary {
    grid-column: 1;
    margin-bottom: 40px;
}

.gnist-summary-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.gnist-summary-header {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.gnist-summary-icon {
    font-size: 48px;
    line-height: 1;
}

.gnist-summary-title h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

.gnist-summary-title p {
    margin: 0;
    font-size: 14px;
    color: #717171;
}

.gnist-summary-details {
    margin-bottom: 20px;
}

.gnist-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.gnist-summary-row:last-child {
    border-bottom: none;
}

.gnist-summary-label {
    font-size: 14px;
    color: #717171;
}

.gnist-summary-value {
    font-size: 14px;
    color: #222;
    text-align: right;
}

.gnist-summary-footer {
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.gnist-summary-note {
    margin: 0;
    font-size: 13px;
    color: #008A05;
}

/* Checkout form - right side */
.woocommerce-checkout #customer_details {
    grid-column: 2;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Form headings */
.woocommerce-checkout h3 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 20px 0;
}

/* Form fields */
.woocommerce-checkout .form-row {
    margin-bottom: 16px;
}

.woocommerce-checkout label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
    text-transform: none;
}

.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Google Sans', sans-serif;
    background: #fff;
    transition: all 0.2s;
}

.woocommerce-checkout input[type="text"]:focus,
.woocommerce-checkout input[type="email"]:focus,
.woocommerce-checkout input[type="tel"]:focus,
.woocommerce-checkout select:focus {
    outline: none;
    border-color: #22314E;
    box-shadow: 0 0 0 1px #22314E;
}

/* Payment options - deposit vs full */
.gnist-payment-options {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.gnist-payment-options h3 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 20px 0;
}

.gnist-payment-option {
    margin-bottom: 12px;
}

.gnist-payment-option:last-child {
    margin-bottom: 0;
}

.gnist-payment-option label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.gnist-payment-option label:hover {
    border-color: #22314E;
    background: #E8EBF1;
}

.gnist-payment-option input[type="radio"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #22314E;
}

.gnist-payment-option input[type="radio"]:checked + .gnist-payment-option-content {
    /* Content styling when selected */
}

.gnist-payment-option-content {
    flex: 1;
}

.gnist-payment-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.gnist-payment-option-header strong {
    font-size: 15px;
    color: #222;
}

.gnist-payment-amount {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.gnist-payment-description {
    margin: 0;
    font-size: 13px;
    color: #717171;
    line-height: 1.5;
}

/* Order review */
#order_review {
    grid-column: 2;
    margin-top: -24px;
}

.woocommerce-checkout-review-order {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Order table */
.woocommerce-checkout-review-order-table {
    margin-bottom: 20px;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.woocommerce-checkout-review-order-table .cart-subtotal th,
.woocommerce-checkout-review-order-table .cart-subtotal td {
    color: #717171;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    border-top: 2px solid #ddd;
    padding-top: 16px;
}

/* Payment methods */
.woocommerce-checkout-payment {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.wc_payment_methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wc_payment_method {
    margin-bottom: 12px;
}

.wc_payment_method label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.wc_payment_method label:hover {
    border-color: #22314E;
}

.wc_payment_method input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #22314E;
}

.wc_payment_method img {
    height: 24px;
    width: auto;
}

/* Place order button */
#place_order {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #22314E 0%, #2F4266 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Google Sans', sans-serif;
    margin-top: 16px;
}

#place_order:hover {
    background: linear-gradient(135deg, #2F4266 0%, #3D5380 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 49, 78, 0.4);
}

/* Terms and conditions */
.woocommerce-terms-and-conditions-wrapper {
    margin-top: 16px;
    padding: 12px;
    background: #f7f7f7;
    border-radius: 6px;
    font-size: 13px;
}

.woocommerce-privacy-policy-text {
    font-size: 13px;
    color: #717171;
    margin-top: 12px;
}

/* Remove default WooCommerce styling */
.woocommerce-checkout abbr {
    text-decoration: none;
    border: none;
}

.woocommerce-checkout .required {
    color: #d63638;
}

/* Error messages */
.woocommerce-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #d63638;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Success messages */
.woocommerce-message {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .woocommerce-checkout .col2-set {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gnist-checkout-summary,
    #customer_details,
    #order_review {
        grid-column: 1;
    }
    
    #order_review {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .woocommerce-checkout .col2-set {
        padding: 20px 16px;
    }
    
    .gnist-summary-card,
    #customer_details,
    .woocommerce-checkout-review-order {
        padding: 20px;
    }
    
    .gnist-payment-options {
        padding: 20px;
    }
}
