/* [woo_gold_single]: text wraps alongside, then below, the native Woo gallery. */
.gcj-gold-single {
    color: #333;
    font: 18px/1.15 Georgia, 'Times New Roman', serif;
}
.gcj-gold-single .gcj-gold-single-description { display: flow-root; }
.gcj-gold-single .gcj-gold-single-description p { margin: 0 0 1.2em; }
.gcj-gold-single .gcj-gold-single-description strong { font-weight: 700; }
body.single-product .gcj-gold-single.product .woocommerce-product-gallery {
    box-sizing: border-box;
    float: right !important;
    width: 52% !important;
    margin: 0 0 24px 30px;
}
.gcj-gold-single .woocommerce-product-gallery__wrapper { margin: 0; }
body.single-product .gcj-gold-single.product .woocommerce-product-gallery__image a > img {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    border: 1px solid #aaa;
    border-radius: 7px !important;
}
.gcj-gold-single .flex-viewport { border-radius: 7px; }
body.single-product .gcj-gold-single.product .flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}
body.single-product .gcj-gold-single.product .flex-control-thumbs li {
    float: none !important;
    width: calc((100% - 24px) / 4) !important;
    list-style: none;
    background: none;
    margin: 0;
    padding: 0;
}
.gcj-gold-single .flex-control-thumbs img {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #aaa;
    border-radius: 7px;
    cursor: pointer;
}
.gcj-gold-single .gcj-gold-single-purchase { clear: both; margin-top: 30px; }
body.single-product .gcj-gold-single.product form.cart {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin: 0;
}
body.single-product .gcj-gold-single.product form.cart .quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    float: none;
    flex-basis: 100%;
    margin: 0 0 0.4em !important;
}
.gcj-gold-single form.cart .quantity:not(:has(input[type="hidden"]))::before {
    content: 'Quantity';
}
body.single-product .gcj-gold-single.product .gcj-gold-single-purchase form.cart .qty {
    box-sizing: border-box;
    width: 48px;
    min-height: 32px;
    padding: 2px 4px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    color: #333;
    font: inherit;
}
body.single-product .gcj-gold-single.product .gcj-gold-single-purchase .single_add_to_cart_button {
    float: none;
    padding: 6px 14px;
    border: 1px solid #591b62;
    border-radius: 24px;
    background: #151515;
    color: #e5c86a;
    font: bold 14px/1.4 Arial, sans-serif;
    cursor: pointer;
}
body.single-product .gcj-gold-single.product .gcj-gold-single-purchase .single_add_to_cart_button:hover { background: #000; color: #fff; }
.gcj-gold-single .single_add_to_cart_button:focus-visible { outline: 2px solid #591b62; outline-offset: 3px; }
body.single-product .gcj-gold-single.product .gcj-gold-single-price { color: #000; font-size: 18px; font-weight: bold; }
.gcj-gold-single .gcj-gold-single-price ins { text-decoration: none; }
.gcj-gold-single form.cart .variations,
.gcj-gold-single form.cart .single_variation_wrap { width: 100%; }
.gcj-gold-single .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
@media only screen and (max-width: 600px) {
    .gcj-gold-single { font-size: 16px; line-height: 1.45; }
    body.single-product .gcj-gold-single.product .woocommerce-product-gallery {
        float: none !important;
        width: 100% !important;
        margin: 0 0 24px;
    }
}
/* The existing Beaver Builder row has one column for this shortcode. */
@media only screen and (max-width: 1024px) {
    body.single-product .fl-col-group:has(> .fl-col:only-child .gcj-gold-single) {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Plain arrow controls for the native WooCommerce PhotoSwipe lightbox. */
body.single-product .pswp .pswp__button--arrow--left,
body.single-product .pswp .pswp__button--arrow--right {
    display: block;
    box-sizing: border-box;
    width: 64px;
    height: 64px;
    top: 50%;
    margin-top: -32px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    opacity: 1;
}
body.single-product .pswp .pswp__button--arrow--left { left: 18px; }
body.single-product .pswp .pswp__button--arrow--right { right: 18px; }
body.single-product .pswp .pswp__button--arrow--left::before,
body.single-product .pswp .pswp__button--arrow--right::before {
    content: '';
    position: absolute;
    box-sizing: border-box;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: solid #fff;
    border-width: 0 4px 4px 0;
    background: none;
}
body.single-product .pswp .pswp__button--arrow--left::before {
    transform: translate(-35%, -50%) rotate(135deg);
}
body.single-product .pswp .pswp__button--arrow--right::before {
    transform: translate(-65%, -50%) rotate(-45deg);
}
body.single-product .pswp .pswp__button--arrow--left:focus-visible,
body.single-product .pswp .pswp__button--arrow--right:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}
@media only screen and (max-width: 600px) {
    body.single-product .pswp .pswp__button--arrow--left,
    body.single-product .pswp .pswp__button--arrow--right {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }
    body.single-product .pswp .pswp__button--arrow--left::before,
    body.single-product .pswp .pswp__button--arrow--right::before {
        width: 12px;
        height: 12px;
        border-width: 0 2px 2px 0;
    }
    body.single-product .pswp .pswp__button--arrow--left { left: 8px; }
    body.single-product .pswp .pswp__button--arrow--right { right: 8px; }
}

/* Stack purchase controls and keep quantity aligned with the text on phones. */
@media only screen and (max-width: 600px) {
    body.single-product .gcj-gold-single.product form.cart .quantity {
        justify-content: flex-start;
        order: 0;
    }
    body.single-product .gcj-gold-single.product .gcj-gold-single-price {
        order: 1;
        flex-basis: 100%;
    }
    body.single-product .gcj-gold-single.product .gcj-gold-single-purchase .single_add_to_cart_button {
        order: 2;
    }
}
