/*
Theme Name:   Hello Elementor Child
Description:  Child Theme untuk proyek Sewa Mobil Lampung
Author:       Developer Handal
Template:     hello-elementor
Version:      1.0.0
*/

main#content { 
    min-height: 65vh; 
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    color: #000000 !important;
    transition: color 0.3s ease !important;
}
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product a:hover .woocommerce-loop-product__title {
    color: #f77f00 !important; 
}

.woocommerce-breadcrumb,
.woocommerce-products-header__title.page-title {
    display: none !important;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    color: #28a745 !important;
    font-weight: 600 !important;
    transition: color 0.3s ease !important;
}
.woocommerce ul.products li.product a:hover .price,
.woocommerce-page ul.products li.product a:hover .price {
    color: #155d27 !important; 
}

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    background-color: #f77f00 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover {
    background-color: #d66a00 !important;
}

.wp-block-woocommerce-cart {
    max-width: 1140px !important;
    margin: 0 auto !important;
    padding-top: 80px !important;
}
.woocommerce-cart .page-header,
.woocommerce-cart h1.entry-title,
.woocommerce-cart h1.page-title {
    display: none !important;
}
.wc-block-components-button.wc-block-cart__submit-button {
    background-color: #f77f00 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    border: none !important;
    transition: background-color 0.3s ease !important;
}
.wc-block-components-button.wc-block-cart__submit-button:hover {
    background-color: #d66a00 !important;
}
.woocommerce-cart .wc-block-components-product-name {
    color: #000000 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    font-weight : bold;
}
.woocommerce-cart .wc-block-components-product-name:hover {
    color: #f77f00 !important; 
}
.woocommerce-cart .wc-block-cart-items .wc-block-formatted-money-amount {
    color: #28a745 !important;
    font-weight: 600 !important;
}

@media (max-width: 767px) {
    .woocommerce-cart .wc-block-cart-item__total { display: none !important; }
    .woocommerce-cart .wc-block-cart-item__product { padding-right: 0 !important; }
    .woocommerce-cart .wc-block-components-product-name {
        margin-bottom: 5px !important;
        display: block !important;
    }
}

@media (max-width: 767px) {
    .wc-block-components-sidebar.wc-block-checkout__sidebar { display: none !important; }
    .woocommerce-checkout .e-con,
    .woocommerce-checkout .e-con-inner,
    .woocommerce-checkout .elementor-widget-text-editor,
    .woocommerce-checkout .wp-block-woocommerce-checkout {
        height: fit-content !important; 
        min-height: 0 !important;
        flex: 0 0 auto !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
}

.wc-block-checkout__actions .wc-block-components-checkout-place-order-button {
    background-color: #f77f00 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    border: none !important;
    font-weight: 500 !important;
    transition: background-color 0.3s ease !important;
}
.wc-block-checkout__actions .wc-block-components-checkout-place-order-button:hover {
    background-color: #d66a00 !important;
}

.wc-block-grid__product-title {
    color: #000000 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}
.wc-block-grid__product:hover .wc-block-grid__product-title {
    color: #f77f00 !important;
}

.wc-block-grid__product-price,
.wc-block-grid__product-price .woocommerce-Price-amount.amount {
    color: #28a745 !important;
    font-weight: 600 !important;
    transition: color 0.3s ease !important;
}
.wc-block-grid__product:hover .wc-block-grid__product-price,
.wc-block-grid__product:hover .wc-block-grid__product-price .woocommerce-Price-amount.amount {
    color: #155d27 !important;
}

.wp-block-button.wc-block-grid__product-add-to-cart .wp-block-button__link {
    background-color: #f77f00 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    border: none !important;
    font-weight: 500 !important;
    transition: background-color 0.3s ease !important;
}
.wp-block-button.wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
    background-color: #d66a00 !important;
}

/* =========================================
   Product Grid Responsiveness Fixes
   ========================================= */

@media (min-width: 768px) {
    .wc-block-grid__products {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 20px !important; 
        justify-content: flex-start !important;
    }
    .wc-block-grid__products li.wc-block-grid__product {
        flex: 0 0 calc(25% - 15px) !important;
        max-width: calc(25% - 15px) !important;
        margin-bottom: 20px !important;
    }
}

@media (max-width: 767px) {
    .wc-block-grid__products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    .wc-block-grid__products li.wc-block-grid__product {
        width: 100% !important;
        max-width: none !important;
        margin-bottom: 0 !important;
    }
}

/* =========================================
   Search bar Style
   ========================================= */
.sewamobil-shop-search-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px auto;
    display: block;
}

.sewamobil-shop-search-container form.woocommerce-product-search {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.sewamobil-shop-search-container input[type="search"].search-field {
    flex-grow: 1;
    height: 48px !important; 
    padding: 0 15px !important;
    border: 1px solid #ddd !important;
    border-right: none !important; 
    border-radius: 4px 0 0 4px !important;
    font-size: 15px;
    outline: none;
    box-shadow: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.sewamobil-shop-search-container input[type="search"].search-field:focus {
    border-color: #f77f00 !important;
}

.sewamobil-shop-search-container button[type="submit"] {
    height: 48px !important;
    background-color: #f77f00 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 25px !important;
    border-radius: 0 4px 4px 0 !important;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

.sewamobil-shop-search-container button[type="submit"]:hover {
    background-color: #d66a00 !important;
}

/* =========================================
   Place Order (Classic Checkout)
   ========================================= */
.woocommerce-checkout #payment #place_order {
    background-color: #f77f00 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 15px 30px !important;
    font-size: 16px !important;
    transition: background-color 0.3s ease !important;
    width: 100% !important;
}
.woocommerce-checkout #payment #place_order:hover {
    background-color: #d66a00 !important;
}

@media (min-width: 992px) {
    form.woocommerce-checkout {
        display: grid;
        grid-template-columns: 55% 40%; 
        grid-template-rows: auto auto;
        column-gap: 5%;
        align-items: start;
    }

    #customer_details {
        grid-column: 1;
        grid-row: 1 / span 2; 
    }

    #order_review_heading {
        grid-column: 2;
        grid-row: 1;
        margin-top: 0 !important;
    }

    #order_review {
        grid-column: 2;
        grid-row: 2;
    }

    .woocommerce-checkout .col2-set .col-1, 
    .woocommerce-checkout .col2-set .col-2 {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px;
    }
}

.woocommerce-checkout #payment ul.payment_methods {
    display: none !important;
}

#order_review {
    background: #ffffff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: none !important;
}

.woocommerce-checkout table.shop_table {
    width: 100% !important;
    margin-bottom: 20px !important;
}

.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout textarea {
    padding: 12px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    background-color: #fcfcfc !important;
    transition: all 0.3s ease !important;
}

.woocommerce-checkout textarea {
    height: 100px !important; 
}

.woocommerce-checkout table.shop_table thead {
    display: none !important;
}

.woocommerce-checkout table.shop_table {
    border: none !important;
    margin-bottom: 20px !important;
}

.woocommerce-checkout table.shop_table tr.cart_item td,
.woocommerce-checkout table.shop_table tr.cart_subtotal td,
.woocommerce-checkout table.shop_table tr.order_total td {
    border-top: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 20px 0 !important;
    vertical-align: top;
}

.woocommerce-checkout table.shop_table td.product-total {
    text-align: right;
    font-weight: 600;
    color: #333;
}

/* =========================================
   Order summary 
   ========================================= */

.sewamobil-checkout-item {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.checkout-item-thumb {
    flex: 0 0 70px !important; 
    background: #fff;
    padding: 5px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkout-item-thumb img {
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    margin: 0 !important;
}

.checkout-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkout-item-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.checkout-mobil-desc {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

.woocommerce-checkout table.shop_table {
    background-color: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    border-collapse: collapse !important;
    overflow: hidden;
}

.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
    background-color: #ffffff !important; 
    border-top: none !important;
    border-bottom: 1px solid #e5e5e5 !important;
    padding: 20px !important;
    vertical-align: middle !important;
}

.woocommerce-checkout table.shop_table tr:last-child td,
.woocommerce-checkout table.shop_table tr:last-child th {
    border-bottom: none !important;
}

.woocommerce-checkout table.shop_table td.product-total {
    vertical-align: middle !important;
    font-size: 15px;
}

body .woocommerce-checkout table.shop_table th,
body .woocommerce-checkout table.shop_table td {
    border-left: none !important;
    border-right: none !important;
}

body .woocommerce-checkout table.shop_table td.product-name {
    padding-right: 25px !important; 
    padding-left: 20px !important;
}

body .woocommerce-checkout table.shop_table td.product-total,
body .woocommerce-checkout table.shop_table tfoot td,
body .woocommerce-checkout table.shop_table tr.cart_subtotal td,
body .woocommerce-checkout table.shop_table tr.order_total td {
    text-align: right !important;
    padding-right: 25px !important;
    width: 35% !important; 
}

body .woocommerce-checkout table.shop_table tfoot th {
    text-align: left !important;
    padding-left: 20px !important;
}

body .woocommerce-checkout table.shop_table tfoot tr:first-child th,
body .woocommerce-checkout table.shop_table tfoot tr:first-child td {
    border-top: 1px solid #dddddd !important;
}

body .woocommerce-checkout #payment,
body .woocommerce-checkout #payment div.form-row.place-order,
body .woocommerce-checkout #payment div.payment_box {
    background-color: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
}

body .woocommerce-checkout #payment {
    margin-top: 20px !important;
    padding: 20px !important;
}

body .woocommerce-checkout #payment div.form-row.place-order {
    border: none !important;
    padding: 0 !important;
    margin: 15px 0 0 0 !important;
}

/* =========================================
   Privacy Policy
   ========================================= */
.woocommerce-checkout #payment .sewamobil-custom-terms {
    margin-bottom: 20px !important;
    padding: 0 !important;
    border: none !important;
}

.woocommerce-checkout #payment .sewamobil-custom-terms label {
    font-size: 13px !important;
    color: #555 !important;
    font-weight: normal !important;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.woocommerce-checkout #payment .sewamobil-custom-terms input[type="checkbox"] {
    margin-top: 3px !important;
    cursor: pointer;
}

body .woocommerce-checkout #payment div.woocommerce-privacy-policy-text,
body .woocommerce-checkout #payment p.woocommerce-privacy-policy-text {
    display: none !important;
}

body form.woocommerce-checkout {
    width: 100% !important;
}

body .woocommerce-checkout #order_review_heading,
body .woocommerce-checkout #order_review {
    width: 100% !important;
    box-sizing: border-box !important;
}

body .woocommerce-checkout table.shop_table {
    width: 100% !important;
    table-layout: fixed !important; 
}

/* =========================================
   Radio Button Variations Style
   ========================================= */
.sewamobil-radio-variations {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.sewamobil-radio-btn {
    margin: 0 !important;
}

.sewamobil-radio-btn input[type="radio"] {
    display: none !important; 
}

.sewamobil-radio-btn span {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #dddddd;
    border-radius: 100px;
    background-color: #fcfcfc;
    color: #555555;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sewamobil-radio-btn span:hover {
    border-color: #f77f00;
    color: #f77f00;
}

.sewamobil-radio-btn input[type="radio"]:checked + span {
    background-color: #f77f00;
    border-color: #f77f00;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(247, 127, 0, 0.25);
}

body table.variations,
body table.variations tbody,
body table.variations tr,
body table.variations th.label,
body table.variations td.value,
body .variations_form .variations {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body table.variations th.label {
    padding-left: 0 !important;
    padding-top: 15px !important;
    vertical-align: top !important;
}

body table.variations td.value {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* =========================================
   Order Received (Thank You Page)
   ========================================= */

ul.woocommerce-order-overview {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    background: #fcfcfc !important;
    padding: 20px !important;
    border: 1px solid #eeeeee !important;
    border-radius: 8px !important;
    margin-bottom: 30px !important;
    list-style: none !important;
}

ul.woocommerce-order-overview li {
    border-right: 1px solid #dddddd !important;
    padding-right: 20px !important;
    margin-right: 0 !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    color: #777777 !important;
}

ul.woocommerce-order-overview li:last-child {
    border-right: none !important;
    padding-right: 0 !important;
}

ul.woocommerce-order-overview li strong {
    display: block !important;
    font-size: 15px !important;
    color: #333333 !important;
    text-transform: none !important;
    margin-top: 5px !important;
}

section.woocommerce-order-details {
    background: #ffffff !important;
    padding: 25px !important;
    border: 1px solid #eeeeee !important;
    border-radius: 8px !important;
    margin-bottom: 30px !important;
}

section.woocommerce-order-details h2 {
    font-size: 20px !important;
    margin-bottom: 15px !important;
    margin-top: 0 !important;
    border-bottom: 1px solid #eeeeee !important;
    padding-bottom: 15px !important;
}

table.woocommerce-table--order-details th,
table.woocommerce-table--order-details td {
    border: none !important;
    border-bottom: 1px solid #f5f5f5 !important;
    padding: 15px 10px !important;
}

section.woocommerce-customer-details h2 {
    display: none !important;
}

section.woocommerce-customer-details address {
    background: #fcfcfc !important;
    border: 1px solid #eeeeee !important;
    border-radius: 8px !important;
    padding: 20px !important;
    font-style: normal !important;
    line-height: 1.8 !important;
    color: #444 !important;
}

table.woocommerce-table--order-details td.woocommerce-table__product-name {
    position: relative !important;
    padding-left: 105px !important; 
    min-height: 100px !important; 
}

table.woocommerce-table--order-details td.woocommerce-table__product-name img {
    position: absolute !important;
    left: 10px !important;
    top: 15px !important; 
    float: none !important;
    margin: 0 !important;
}

table.woocommerce-table--order-details ul.wc-item-meta {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

table.woocommerce-table--order-details td.woocommerce-table__product-total {
    text-align: left !important;
    vertical-align: top !important;
    padding-top: 15px !important; 
}

table.woocommerce-table--order-details tfoot td {
    text-align: left !important;
}

table.woocommerce-table--order-details td.woocommerce-table__product-name a {
    color: #f77f00 !important; 
    font-weight: 600 !important;
    text-decoration: none !important;
    display: block !important;
    margin-bottom: 5px !important;
    line-height: 1.4 !important;
}

table.woocommerce-table--order-details td.woocommerce-table__product-name strong.product-quantity {
    display: none !important;
}