/* Shared visual price component for archive and native related courses. */
html[data-py-theme] body #page .products li.product .price>.py-card-pricing{display:grid;grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto;gap:10px 8px;align-items:center;width:100%;min-width:0;font-family:var(--py-font);font-variant-numeric:tabular-nums;line-height:1.6}
html[data-py-theme] body #page .products li.product .price .py-card-pricing del{display:flex;grid-column:1/-1;grid-row:auto;align-items:center;justify-content:space-between;gap:8px;justify-self:stretch;width:auto;max-width:100%;min-width:0;min-height:42px;margin:0;padding:8px 10px;background:var(--py-c-raised);border:1px solid var(--py-c-border);border-radius:5px;color:var(--py-c-priceold,var(--py-c-muted));font-size:17px;font-weight:650;line-height:1.6;opacity:1;text-decoration:none}
html[data-py-theme] body #page .products li.product .price .py-card-pricing del::before{content:attr(data-py-price-label);display:block;font-size:11px;font-weight:550;line-height:1.8;white-space:nowrap;color:inherit}
html[data-py-theme] body #page .products li.product .price .py-card-pricing del .amount{display:inline-flex;white-space:nowrap;text-decoration:line-through;text-decoration-thickness:1px;color:inherit}
html[data-py-theme] body #page .products li.product .price .py-card-pricing del bdi{text-decoration:none}
html[data-py-theme] body #page .products li.product .price .py-card-pricing .amount bdi{display:inline-flex;flex-direction:row;direction:rtl;align-items:baseline;gap:5px;white-space:nowrap}
html[data-py-theme] body #page .products li.product .price .py-card-pricing ins{display:flex;grid-column:1;grid-row:auto;flex-direction:row;align-items:center;gap:7px;justify-self:start;min-width:0;margin:0;padding:0;background:transparent;color:var(--py-c-offerink);font-size:21px;font-weight:750;line-height:1.6;text-decoration:none}
html[data-py-theme] body #page .products li.product .price .py-card-pricing ins::before{content:'';display:inline-block;flex:none;width:18px;height:18px;background:currentColor;-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%2220%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M2%209a4%204%200%200%200%204-4m12%200a4%204%200%200%200%204%204M2%2015a4%204%200%200%201%204%204m12%200a4%204%200%200%201%204-4%22%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%2220%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M2%209a4%204%200%200%200%204-4m12%200a4%204%200%200%200%204%204M2%2015a4%204%200%200%201%204%204m12%200a4%204%200%200%201%204-4%22%2F%3E%3C%2Fsvg%3E");-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}
html[data-py-theme] body #page .products li.product .price .py-card-pricing .woocommerce-Price-currencySymbol{font-size:11px;font-weight:500;color:inherit}
html[data-py-theme] body #page .products li.product .price .py-card-pricing .py-catalog-price-discount{display:inline-flex;grid-column:2;grid-row:auto;align-self:center;align-items:center;justify-content:center;gap:4px;padding:3px 6px;margin:0;background:var(--py-c-offerbg);color:var(--py-c-offerink);border:1px solid var(--py-c-offerborder);border-radius:4px;font-size:12px;font-weight:700;line-height:1.6;white-space:nowrap}
html[data-py-theme] body #page .products li.product .price .py-card-pricing .py-catalog-price-discount bdi{direction:ltr;unicode-bidi:isolate}
html[data-py-theme] body #page .products li.product .price .py-card-pricing .py-catalog-price-discount .py-icon{display:block;width:14px;height:14px;flex:none}
body.single-product #page .related.products li.product .price{display:block;width:100%;margin:12px 0}
@media(max-width:1199px){html[data-py-theme] body #page .products li.product .price .py-card-pricing del{font-size:15px;padding:7px 8px;gap:6px}html[data-py-theme] body #page .products li.product .price .py-card-pricing ins{font-size:18px;gap:5px}html[data-py-theme] body #page .products li.product .price .py-card-pricing ins::before{width:16px;height:16px}html[data-py-theme] body #page .products li.product .price .py-card-pricing .py-catalog-price-discount{font-size:11px;padding:3px 5px}}
@media(max-width:599px){html[data-py-theme] body #page .products li.product .price .py-card-pricing del{font-size:16px}html[data-py-theme] body #page .products li.product .price .py-card-pricing ins{font-size:19px}}

/* Reserve readable price space in related cards instead of shrinking money text. */
body.single-product #page .related.products ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
body.single-product #page .related.products ul.products::before,body.single-product #page .related.products ul.products::after{display:none}
body.single-product #page .related.products ul.products li.product{width:auto;margin:0;min-width:0}
body.single-product #page .related.products .woocommerce-loop-product__title{font-size:15px;line-height:1.85;text-decoration:none}
body.single-product #page .related.products .ast-loop-product__link{text-decoration:none}
body.single-product #page .related.products .button{width:100%;font-size:12px;min-height:44px;line-height:1.8;display:flex;align-items:center;justify-content:center;white-space:normal}
@media(max-width:1199px){body.single-product #page .related.products ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(max-width:599px){body.single-product #page .related.products ul.products{grid-template-columns:minmax(0,1fr);gap:16px}}
