
/*
Theme Name:   	GG Roastery
Template:     	amaya
Version:      	1.4.2
Text Domain:  	gg_roastery
*/

.page-title {
    margin-top: 18px;
}
.woocommerce .widget_product_categories ul li {
    text-align: left;
    margin: 5px;
}
#sidebar-woocommerce .widget {
    margin-bottom: 0;
}
.blog .right-sidebar .widget, .archive .right-sidebar .widget, .single .right-sidebar .widget {
    padding-top: 20px;
    padding-bottom: 15px;
}
.widget-area ul li {
    margin-top: 0;
}
.widget_price_filter .ui-slider .ui-slider-handle, .widget_price_filter .ui-slider-horizontal .ui-slider-range {
    background-color: #222;
}
.widget_price_filter .price_slider_wrapper .ui-widget-content {
    background-color: #ccc;
}
.woocommerce .widget_product_categories .children {
    margin-left: 10px;
}
.wc-block-components-order-summary .wc-block-components-panel__button,
.wc-block-components-totals-coupon .wc-block-components-panel__button {
    padding: 5px 10px !important;
}
.wc-block-components-totals-coupon__content .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button {
    flex: unset;
}
.wp-block-woocommerce-checkout-order-summary-block {
    padding: 0 10px;
}
.woocommerce-info a.button.wc-forward, 
.woocommerce-message a.button.wc-forward {
    margin-left: 24px;
}
.woocommerce-Price-amount.amount {
    font-family: Barlow;
    font-weight: 500;
}
.custom-order-tracking {
    max-width: 600px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    color: #333;
}

.custom-order-tracking h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.custom-order-details {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}
.custom-order-details table {
    width: 100%;
    border-collapse: collapse;
}

.custom-order-details th,
.custom-order-details td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}
.custom-order-details th:first-child {
    width: 65%;
}
.custom-order-details th:last-child,
.custom-order-details td:last-child {
    width: 35%;
    min-width: 100px;
    padding-left: 15px;
}

.custom-order-details th {
    font-weight: bold;
    color: #2c3e50;
}

.custom-order-updates {
    list-style-type: none;
    padding: 0;
}

.custom-order-updates li {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.custom-order-updates time {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.custom-order-error {
    color: #e74c3c;
    font-weight: bold;
}

.custom-order-details .wc-item-meta {
    margin: 0 24px 0 20px;
    font-size: 0.8rem;
}
.custom-order-details .wc-item-meta li{
    margin: 0;
}
.custom-order-details .wc-item-meta li p {
    margin-bottom: 0;
    display: inline-block;
}
.woocommerce-account .entry-content {
    margin: 54px 0;
}


#gg-coffee-footer {
    padding: 4rem 2rem 2rem;
    background-color: #ffffff;
}

#gg-coffee-footer .footer-content {
    border-top: 1px solid #e5e5e5;
    padding: 4em 0;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 38% 28% 20% 8%;
    gap: 2%;
}
#gg-coffee-footer .footer-section h3 {
    font-family: Raleway;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}
#gg-coffee-footer .footer-section h3.margin-top {
    margin-top: 1.3rem;
}

#gg-coffee-footer .footer-section p, 
#gg-coffee-footer .footer-section a:not(.button) {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #333;
    text-decoration: none;
    margin-bottom: 0.3rem;
}

#gg-coffee-footer .subscribe-form {
    display: flex;
    gap: 1rem;
    margin-top: 3.1rem;
    width: 80%;
}

#gg-coffee-footer .email-input {
    flex: 1;
    padding: 0.5rem 0;
    border:none;
    border-bottom: 1px solid #ccc;
    font-size: 0.75rem;
    height:2.5rem;
}

#gg-coffee-footer .subscribe-btn {
    padding: 5px 20px;
    font-size: 0.75rem;
    border-color: unset;
}

#gg-coffee-footer .footer-section .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}
#gg-coffee-footer .footer-section .footer-nav li {
    list-style: none;
    margin-bottom: 0;
    line-height: 1.4rem;
}
#gg-coffee-footer .footer-section .footer-nav li a {
    line-height: 1.5;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0;
}

#gg-coffee-footer .last-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
}

#gg-coffee-footer .footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

#gg-coffee-footer .instagram-link svg {
    width: 24px;
    height: 24px;
}

#gg-coffee-footer .copyright {
    font-size: 0.875rem;
    color: #666;
}

@media (max-width: 768px) {
    #gg-coffee-footer .footer-content {
        grid-template-columns: 1fr;
        padding-top: 1rem;
    }
    #gg-coffee-footer .footer-section {
        margin-top: 2rem;
    }
    
    #gg-coffee-footer .subscribe-form {
        flex-direction: column;
        margin-top: 0;
    }

    #gg-coffee-footer .last-column {
        display: unset;
        flex-direction: unset;
        justify-content: unset;
        text-align: unset;
    }
    
    #gg-coffee-footer .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.cart-count {
    color: #db9457;
    font-size: 1em;
    margin-left: 5px;
}

.product-hover-form {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    padding: 15px;
    z-index: 10;
}

.product:hover .product-hover-form {
    display: block;
}

.gg-variation-attributes-container {
    margin-top: 10px;
}
.gg-variation-attributes-container .gg-attribute-name {
    display: inline-block;
    font-weight: 400;
}
.gg-variation-attributes-container .gg-variation-attribute-selector {
    display: inline-block;
    width: min-content;
    height: 2rem;
    line-height: 2rem;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.gg-variation-attributes-container .gg-update-variation .gg-update-variation-submit {
    color: #db9457;
    background: white;
    border: 1px solid #db9457;
    padding: 1px 15px;
    margin-bottom: 15px;
    position: relative;
    min-width: 120px; /* Prevent button size changes */
}
.gg-update-variation-submit.loading span {
    visibility: hidden;
}

.gg-update-variation-submit.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(219, 148, 87, 0.3);
    border-radius: 50%;
    border-top-color: #db9457;
    animation: button-spin 0.6s linear infinite;
}


@keyframes button-spin {
    to {
        transform: rotate(360deg);
    }
}

.gg-update-variation-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #e0e0e0;
    transition: all 0.3s ease;
}

.gg-update-variation-submit:disabled:hover {
    background-color: #e0e0e0;
    box-shadow: none;
}

li.product.loading {
    position: relative;
}

li.product.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 2000;
}

li.product.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 2px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    z-index: 2001;
    animation: spin 1s linear infinite;
}
li.product.success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 2000;
}

li.product.success::after {
    content: '✓\A Item added';
    white-space: pre;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #db9457;
    font-size: 1.2em;
    font-weight: 700;
    text-align: center;
    z-index: 2001;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.gg-variation-attributes-container .gg-update-notification {
    display: none;
    margin-left: 10px;
    color: green;
}
.gg-product-overlay {
    display: none;
    position: absolute;
    top: 30%;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    transition: all 0.3s ease;
    pointer-events: none; /* Let clicks pass through by default to keep the hover effect */
}
.gg-variation-overlay-content {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
}
.gg-variation-overlay-content .variations select, 
.gg-variation-overlay-content input[type="number"] {
    height: 1.6rem;
    line-height: 1.6rem;
}
.gg-variation-overlay-content table.variations {
    margin-bottom: 10px;
}
.gg-variation-overlay-content table.variations tr {
    padding-bottom: 5px;
}
.gg-variation-overlay-content .quantity {
    min-height:25px;
}
.gg-variation-overlay-content table.variations tr th.label,
.gg-variation-overlay-content .woocommerce-variation-availability,
.gg-variation-overlay-content a.reset_variations {
    display:none !important;
}
.gg-variation-overlay-content .single_variation_wrap {
    display: flex;
    justify-content: center;
    align-content: space-between;
    gap: 10px;
    flex-direction: column;
}
.gg-variation-overlay-content .single_add_to_cart_button.button {
    padding: 15px 15px 0 !important;
    font-weight: 700;
    background-color: transparent !important;
    border: none;
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 8px;
}
li.product-type-variable:hover .gg-product-overlay,
li.product-type-variable .gg-product-overlay:focus-within {
    display: block;
    pointer-events: all;
}
.gg-variation-overlay-content {
    pointer-events: all; /* Re-enable pointer events for the content */
}

.woocommerce-widget-layered-nav-list__item--chosen {
    width: max-content;
}
.woocommerce-widget-layered-nav-list__item--chosen,
.woocommerce-widget-layered-nav-list__item--chosen a,
.woocommerce-widget-layered-nav-list__item--chosen a:link,
.woocommerce-widget-layered-nav-list__item--chosen a:active,
.woocommerce-widget-layered-nav-list__item--chosen a:hover {
    font-weight: 700;
    color: #db9457;
    /* Add any other styling for selected state */
}

.woocommerce-widget-layered-nav-list__item--chosen a::after {
    content: "✕";
    cursor: pointer;
    margin-left: 5px;
    pointer-events: all;
    float: right;
}

.woocommerce-ordering {
    display: none !important;
}
.tinvwl-woocommerce_after_add_to_cart_button {
    margin-top: 50px;
}
.gg-variation-overlay-content .tinvwl_add_to_wishlist_button {
    margin-top: 0 !important;
    padding-top: 8px;
}

@media (min-width: 1440px) {
    .tinvwl-woocommerce_after_add_to_cart_button {
        margin-top: 8px;
    }
    .woocommerce li.product.product-type-simple:hover .tinv-wishlist {
        margin-top: 8px;
    }
    .gg-variation-overlay-content .tinv-wraper.woocommerce.tinv-wishlist.tinvwl-after-add-to-cart.tinvwl-woocommerce_after_add_to_cart_button {
        position: absolute;
        display: inline-block;
        left: 50%;
    }
    .gg-variation-overlay-content .woocommerce.post-type-archive-product li.product:hover .button:not(.added) {
        width: 50%;
    }
    .gg-variation-overlay-content .single_add_to_cart_button,
    .gg-variation-overlay-content .tinv-wraper.tinv-wishlist {
        width: 50%;
    }
}
.tinvwl-woocommerce_after_shop_loop_item {
    display: none;
}
.woocommerce li.product.product-type-simple:hover .tinvwl-woocommerce_after_shop_loop_item,
.woocommerce.post-type-archive-product li.product.product-type-simple:hover .tinvwl-woocommerce_after_shop_loop_item {
    display: block;
}
.woocommerce li.product.product-type-simple:hover .tinv-wishlist {
    margin-top: 30px;
}
.wc-block-grid__product .tinv-wraper.tinv-wishlist {
    display: none !important;
}
.tinvwl-theme-style .entry-content .woocommerce:not(.tinv-wishlist) {
    display: flex;
    flex-wrap: wrap;
}
.woocommerce-MyAccount-content .tinv-wishlist .tinv-header {
    display: none;
}
.tinvwl-theme-style .entry-header .page-title {
    font-family: Raleway;
    font-weight: 600 !important;
    font-size: 28px;
    letter-spacing: 6px;
    text-align: center;
    text-transform: uppercase;
}
.tinvwl_add_to_wishlist-text {
    font-size: 0.8em;
}
.woocommerce-MyAccount-content .cart-empty.woocommerce-info {
    padding: 0;
}

button[name="update_cart"]:not(:disabled) {
    background-color: #db9457;
    border-color: #db9457;
    color: #242434 !important;
}
button[name="update_cart"]:disabled,
button[name="update_cart"]:disabled:hover {
    background-color: #242434;
    border-color: #242434;
    color: #fff !important;
}
