/* ChristGiftUS Custom Design – product card, homepage banner, popup. Scoped class names only. */

/* product page card (desktop, inside the gallery column) */
.cgus-pcard{display:flex;gap:16px;align-items:flex-start;margin:22px 0 0;padding:18px 20px;border:1.5px dashed #6f9a84;border-radius:14px;background:#f1f6f2;clear:both;text-align:left}
.cgus-pcard *{box-sizing:border-box}
.cgus-pcard__ico{flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:#174632;color:#fff;display:flex;align-items:center;justify-content:center}
.cgus-pcard__ico svg{width:24px;height:24px}
.cgus-pcard .cgus-img{flex:0 0 72px;width:72px;border-radius:10px;overflow:hidden}
.cgus-pcard .cgus-img img{width:100%;height:100%;object-fit:cover;display:block}
.cgus-pcard__body{flex:1;min-width:0}
.cgus-pcard__title{font-size:17px;font-weight:700;color:#174632;margin:0 0 4px;line-height:1.35}
.cgus-pcard__text{font-size:14px;color:#4a4a4a;margin:0 0 12px;line-height:1.5}
.cgus-pcard__btn{display:inline-block;background:#174632;color:#fff!important;font-weight:700;font-size:14px;text-decoration:none;padding:10px 18px;border-radius:8px;line-height:1.3}
.cgus-pcard__btn:hover,.cgus-pcard__btn:focus-visible{background:#0f3324;color:#fff}
.cgus-pcard__fine{font-size:12px;color:#6b6b6b;margin:8px 0 0}
/* Martfury pins "Roll over image to zoom in" to the bottom of the gallery (absolute + 35px padding).
   With the card inside the gallery, put the hint back under the image and the card after it. */
/* Flexslider moves the hint before .flex-viewport, so order the column explicitly: image, hint, card. */
.single-product .mf-product-detail .woocommerce-product-gallery:has(> .cgus-pcard){display:flex;flex-direction:column;padding-bottom:0}
.single-product .mf-product-detail .woocommerce-product-gallery:has(> .cgus-pcard) > .flex-viewport,
.single-product .mf-product-detail .woocommerce-product-gallery:has(> .cgus-pcard) > .woocommerce-product-gallery__wrapper{order:1}
.single-product .mf-product-detail .woocommerce-product-gallery:has(> .cgus-pcard) > .product-image-ms{position:static!important;order:2;padding-top:8px}
.single-product .mf-product-detail .woocommerce-product-gallery:has(> .cgus-pcard) > .cgus-pcard{order:3;margin-top:14px}
/* mobile card: after the price */
.cgus-pcard--m{display:block;text-align:center;margin:14px 0 16px;padding:12px 14px}
.cgus-pcard--m .cgus-pcard__title{font-size:15px;margin-bottom:8px}
.cgus-pcard--m .cgus-pcard__btn{display:block;width:100%;padding:11px 14px}

/* homepage banner */
.cgus-hb{max-width:1680px;margin:30px auto 0;padding:0 15px}
.cgus-hb *{box-sizing:border-box}
.cgus-hb__in{display:flex;align-items:center;gap:32px;background:#f1f6f2;border:1.5px dashed #6f9a84;border-radius:16px;padding:26px 32px}
.cgus-hb__text{flex:1;min-width:0}
.cgus-hb .cgus-hb__title{font-size:26px;line-height:1.25;font-weight:700;color:#174632;margin:0 0 6px}
.cgus-hb p{margin:0 0 16px;color:#3a3a3a;font-size:16px;line-height:1.55}
.cgus-hb__btn{display:inline-block;background:#174632;color:#fff!important;font-weight:700;text-decoration:none;padding:12px 24px;border-radius:9px;margin-right:14px}
.cgus-hb__btn:hover,.cgus-hb__btn:focus-visible{background:#0f3324}
.cgus-hb__fine{font-size:13px;color:#5b5b5b;white-space:nowrap}
.cgus-hb__media{flex:0 0 300px;width:300px}
.cgus-hb .cgus-img,.cgus-pop .cgus-img{position:relative;overflow:hidden;border-radius:12px;width:100%}
.cgus-hb .cgus-img img,.cgus-pop .cgus-img img{width:100%;height:100%;object-fit:cover;display:block}
.cgus-hb .cgus-img--ph,.cgus-pop .cgus-img--ph,.cgus-pcard .cgus-img--ph{background:repeating-linear-gradient(135deg,#e3ece6 0 14px,#edf3ef 14px 28px);border:1px dashed #a9c2b4;display:flex;align-items:center;justify-content:center}
.cgus-hb .cgus-img__ph,.cgus-pop .cgus-img__ph{font-size:12px;color:#4b6658;background:rgba(255,255,255,.85);padding:4px 8px;border-radius:6px;margin:6px;text-align:center}
@media (max-width:767px){
	.cgus-hb{margin-top:20px}
	.cgus-hb__in{flex-direction:column;align-items:stretch;gap:16px;padding:18px 16px}
	.cgus-hb__media{flex:none;width:100%}
	.cgus-hb .cgus-hb__title{font-size:21px}
	.cgus-hb p{font-size:15px}
	.cgus-hb__btn{display:block;text-align:center;margin:0 0 8px}
	.cgus-hb__fine{display:block;text-align:center}
}

/* popup */
.cgus-pop{position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.cgus-pop[hidden]{display:none}
.cgus-pop__box{position:relative;background:#fff;border-radius:16px;max-width:520px;width:100%;max-height:92vh;overflow:auto;padding:20px 22px 16px;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.cgus-pop__x{position:absolute;top:8px;right:10px;width:40px;height:40px;border:0;background:none;font-size:28px;line-height:40px;color:#444;cursor:pointer;padding:0;z-index:1}
.cgus-pop__t{font-size:24px;font-weight:700;color:#174632;margin:16px 0 6px;line-height:1.25}
.cgus-pop__d{color:#3a3a3a;margin:0 0 16px}
.cgus-pop__btn{display:block;background:#174632;color:#fff!important;font-weight:700;text-decoration:none;padding:14px;border-radius:10px}
.cgus-pop__btn:hover,.cgus-pop__btn:focus-visible{background:#0f3324}
.cgus-pop__fine{font-size:13px;color:#666;margin:10px 0 2px}
.cgus-pop__later{border:0;background:none;color:#555;font-size:14px;text-decoration:underline;cursor:pointer;padding:8px}
.cgus-pop :focus-visible,.cgus-pcard :focus-visible,.cgus-hb :focus-visible{outline:3px solid #f2c14e;outline-offset:2px}
