/*
 Theme Name: Avada Child
 Theme URI: https://grit-grip.com/
 Description: Child theme for Avada
 Author: Your Name
 Template: Avada
 Version: 1.0.0
*/

 .hide-order-items .wc-block-components-order-summary{
    display: none !important;
 }
 #gg-cart-summary {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
}

.gg-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
    position: relative;

}

.gg-img-wrap {
    position: relative;
}

.gg-img-wrap img {
    width: 60px;
    border-radius: 6px;
}

.gg-badge {
    position: absolute;
    top: 0;
    right: -2px;
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 4px 7px;
    border-radius: 50%;
}

.gg-middle {
    flex: 1;
}

.gg-title {
    font-weight: 600;
}

.gg-unit-price {
    color: #666;
    font-size: 14px;
}

.gg-desc {
    font-size: 13px;
    color: #777;
    margin-top: 5px;
}
.gg-desc p {
    margin: 0!important;
}

.gg-right {
    font-weight: 600;
    text-align: right;
}

.gg-qty {
    display: inline-flex;
    border: 1px solid #ddd;
    height: 35px;
}

.gg-qty button,
.gg-qty input {
    border: none;
    background: #fff;
    width: 50px;
    height: 100%;
    text-align: center;
    font-size: 16px;
}

/* middle input */
.gg-qty input {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    pointer-events: none; /* optional: disable manual typing */
}

/* buttons */
.gg-qty button {
    cursor: pointer;
}

/* hover effect */
.gg-qty button:hover {
    background: #f5f5f5;
}

/* remove number arrows */
.gg-qty input[type=number] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
    border-bottom: none;
    border-top: none;
    height: 100%;
}
.gg-qty input::-webkit-outer-spin-button,
.gg-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.gg-remove {
    position: absolute;
    top: 50%;
    left: 10px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #fff;
    background: var(--button_gradient_top_color);
    z-index: 99;
}

.gg-remove:hover {
    color: #000;
}
.gg-item {
    transition: all 0.25s ease;
}

.gg-loading {
    opacity: 0.6;
    pointer-events: none;
}

.gg-qty button {
    transition: background 0.2s ease;
}

.gg-qty button:active {
    transform: scale(0.95);
}

/* smooth hover */
.gg-item:hover {
    background: #fafafa;
}
.wc-block-checkout__actions_row .wc-block-components-checkout-return-to-cart-button{
    display: none;
}
.gg-loading-skeleton {
    position: relative;
    overflow: hidden;
    background: #eee;
    color: transparent !important;
}

.gg-loading-skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150px;
    height: 100%;
    width: 150px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.6),
        transparent
    );
    animation: gg-shimmer 1.2s infinite;
}

@keyframes gg-shimmer {
    0% { left: -150px; }
    100% { left: 100%; }
}
.gg-coupon {
    margin: 20px 0;
}

/* clickable text */
.gg-coupon-toggle {
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.gg-coupon-toggle span {
    color: #3b82f6;
    font-weight: 500;
}

/* hidden by default */
.gg-coupon-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* open state */
.gg-coupon.open .gg-coupon-content {
    max-height: 100px;
    margin-top: 10px;
}

/* wrapper */
.gg-coupon-field {
    display: flex;
    width: 100%;
    margin-top: 10px;
}

/* input (same as checkout fields) */
.gg-coupon-field input {
    flex: 1;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dcdcdc;
    border-right: none; /* attach to button */
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: border 0.2s ease;
}

/* focus like Woo */
.gg-coupon-field input:focus {
    border-color: #3b82f6;
}

/* button (attached) */
.gg-coupon-field button {
    height: 48px;
    padding: 0 20px;
    border: 1px solid #3b82f6;
    border-left: none;
    background: #3b82f6;
    color: #fff;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

/* hover */
.gg-coupon-field button:hover {
    background: #2563eb;
}
.gg-coupon-field input,
.gg-coupon-field button {
    height: 52px!important; /* match your form exactly */
}
/* loading state */
.gg-coupon-field.loading button {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

/* spinner */
.gg-coupon-field.loading button::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    animation: gg-spin 0.6s linear infinite;
}

@keyframes gg-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* message */
.gg-coupon-message {
    margin-top: 8px;
    font-size: 13px;
    display: none;
}

/* error */
.gg-coupon-message.error {
    color: #dc2626;
    display: block;
}

/* success */
.gg-coupon-message.success {
    color: #16a34a;
    display: block;
}

/* icon spacing */
.gg-coupon-message::before {
    margin-right: 6px;
}

.gg-coupon-message.error::before {
    content: "⚠";
}

.gg-coupon-message.success::before {
    content: "✔";
}
@media (max-width: 768px) {
   .wc-block-components-order-summary {
        display: none !important;
    }
}
.gg-cart-menu {
    position: relative;
    display: inline-block;
}

.gg-cart-count {
    position: absolute;
    top: 5px;
    right: -10px;

    background: #000;
    color: #fff;

    font-size: 12px;
    font-weight: 600;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    line-height: 1;
}
@media (max-width: 768px) {

    .gg-accordion-title {
        padding: 15px;
        border-bottom: 1px solid #eee;
        font-weight: 600;
        cursor: pointer;
        position: relative;
    }

    .gg-accordion-title::after {
        content: '+';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .gg-accordion-title.active::after {
        content: '-';
    }

    .woocommerce-Tabs-panel {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

}
#reviews #comments > h3 {
    display: none;
}
.gg-product-video-wrapper {
    margin: 40px 0;
}

.gg-product-video-wrapper video {
    width: 100%;
    border-radius: 12px;
    display: block;
}
.gg-checkout-notice {
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
}
.wp-block-woocommerce-checkout-shipping-method-block,.wp-block-woocommerce-checkout-pickup-options-block{
    display: none;
}
 #free-shipping-container{
       padding-bottom: 0px;
       padding-top: 0px;
    }
     #free-shipping-heading-container,#free-shipping-form-container{
        padding:0px;
        margin:0px;
    }
      #wholesale-form-container .fusion-form-label-wrapper,#wholesale-form-container label{
        display: none;
    }
    #wholesale-form-container .fusion-form-submit-field{
        margin-top: 0px;
         
    }
    #wholesale-heading-text .fusion-layout-column{
        padding: 0px;
        margin: 0px;
    }
    #wholesale-heading-text{
        padding:0px;
        margin:0px;
    }
@media screen  and (max-width: 768px) {
    #free-shipping-container{
       padding-bottom: 0px;
       padding-top: 0px;
    }
    #free-shipping-heading-container,#wholesale-heading-text{
        padding:0px;
        margin:0px;
    }
    #free-shipping-heading-container .fusion-title{
        margin-bottom: 0px!important;
    }
    #free-shipping-form-container,#wholesale-form-container{
        margin: 0px;
    }
   #free-shipping-form-container .fusion-layout-column,#wholesale-form-container .fusion-layout-column{
        padding: 0px;
        margin: 0px;
    }
   #free-shipping-form-container .fusion-form-field,#wholesale-form-container .fusion-form-field{
        margin: 10px 0;
         padding: 0;
    }
    #wholesale-form-container .fusion-form-label-wrapper,#wholesale-form-container label{
        display: none;
    }
    #wholesale-form-container .fusion-fullwidth{
        padding: 0 10px;
    }
}