/* Boraah — однокроковий кошик VirtueMart (templates/boraah/html/com_virtuemart/cart/default.php) */
.brh-co{padding:70px 0 110px}
.brh-hidden{display:none!important}
.brh-co .cart-layout{margin:0}
.brh-co .cart-items{border-top:1px solid #d4dfd0}
.brh-co .cart-item{padding:24px 0;background:transparent}
.brh-co .cart-item-art{color:#243025;text-decoration:none}
.brh-co .cart-item-art:before{content:"";position:absolute;width:150px;height:150px;border:1px solid rgba(31,47,29,.15);border-radius:50%;right:-50px;top:-60px}
.brh-co .cart-item-art:after{border-color:rgba(31,47,29,.16)}
.brh-co .cart-item-art strong{position:relative;z-index:1}
.brh-co .cart-item-title{margin:10px 0 6px}
.brh-co .cart-item-title a{color:inherit;text-decoration:none}
.brh-co-variant{display:inline-flex;align-items:center;gap:8px;padding:6px 11px;margin:2px 0 12px;background:#eef6e3;border:1px solid #d5e5c9;color:#3c5a39;font-size:11px;font-weight:900;letter-spacing:.02em}
.brh-co-variant:before{content:"";width:7px;height:7px;border-radius:50%;background:#7fb357}
.brh-co .cart-item-desc{max-width:440px}
.brh-co .cart-qty input{width:42px;height:37px;border:0;background:none;text-align:center;font-size:13px;font-weight:900;font-variant-numeric:tabular-nums;padding:0;color:var(--ink)}
.brh-co .cart-qty input:focus{outline:2px solid #c9e59a;outline-offset:-2px}
.brh-co .cart-qty button{cursor:pointer}
.brh-co-qty-label{font-size:11px;color:#8d9a89;font-weight:700}
.brh-co .cart-remove{cursor:pointer}
.brh-co .cart-item-price>span{margin-top:6px}

.brh-co-block{margin-top:64px}
.brh-co-block .cart-list-heading{margin-bottom:22px}
.brh-co-hint{font-size:13px;line-height:1.6;color:#768372;margin:-6px 0 22px;max-width:560px}

/* Поля покупця */
.brh-co-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}
.brh-co-grid+.brh-co-grid{margin-top:18px}
.brh-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.brh-field--wide{grid-column:1/-1}
.brh-field label{font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#5e6b5a}
.brh-field .asterisk{color:#c18a2a}
.brh-field small{font-size:11px;color:#8d9a89;line-height:1.5}
.brh-co input[type=text],.brh-co input[type=email],.brh-co input[type=tel],.brh-co input[type=password],.brh-co select,.brh-co textarea{width:100%;max-width:none;min-height:52px;padding:13px 16px;border:1px solid #d3ddce;border-radius:0;background:#fff;font:inherit;font-size:15px;color:var(--ink);box-shadow:none;transition:border-color .15s,box-shadow .15s}
.brh-co textarea{min-height:110px;resize:vertical}
.brh-co select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#5e6b5a 50%),linear-gradient(135deg,#5e6b5a 50%,transparent 50%);background-position:calc(100% - 22px) 50%,calc(100% - 16px) 50%;background-size:6px 6px;background-repeat:no-repeat;padding-right:44px}
.brh-co input:focus,.brh-co select:focus,.brh-co textarea:focus{outline:none;border-color:#8fbf65;box-shadow:0 0 0 4px #e6f6cf}
.brh-co input.invalid,.brh-co select.invalid,.brh-co textarea.invalid,.brh-co .invalid input{border-color:#d08a5a;box-shadow:0 0 0 4px #fbe9dc}
.brh-co .cart-qty input,.brh-co .cart-qty input:focus{min-height:0;border:0;box-shadow:none;width:42px;padding:0;background:none}

.brh-co-more{margin-top:18px;border:1px solid #dae3d5;background:#fafcf7}
.brh-co-more>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:18px 20px;font-size:13px;font-weight:900;color:#334a31}
.brh-co-more>summary::-webkit-details-marker{display:none}
.brh-co-more>summary:before{content:"+";display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e4f2d3;color:#3c5a39;font-size:17px;font-weight:400;transition:transform .2s}
.brh-co-more[open]>summary:before{transform:rotate(45deg)}
.brh-co-more>summary small{margin-left:auto;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#9aab94}
.brh-co-more>.brh-co-grid,.brh-co-more>.brh-co-hint{padding:0 20px}
.brh-co-more>.brh-co-grid{padding-bottom:22px}
.brh-co-more>.brh-co-hint{margin:0 0 16px}
.brh-co-secondary{margin:0 20px 22px;display:inline-flex;align-items:center;min-height:46px;padding:12px 20px;border:1px solid #283b2d;background:transparent;color:#283b2d;font-size:12px;font-weight:900;cursor:pointer}
.brh-co-secondary:hover{background:#283b2d;color:#fff}

/* Картка даних зареєстрованого покупця */
.brh-co-card{border:1px solid #dae3d5;background:#fff;padding:22px 24px}
.brh-co-card>div{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px dashed #e1e8dc;font-size:13px}
.brh-co-card>div span{color:#7f8c7b}
.brh-co-card>div strong{text-align:right;word-break:break-word}
.brh-co-card .brh-co-hint{margin:0}
.brh-co-edit{display:inline-block;margin-top:16px;font-size:12px;font-weight:900;color:#40613c;border-bottom:1px solid currentColor;padding-bottom:4px;text-decoration:none}
.brh-co-edit.is-required{color:#b55636}

/* Способи оплати / доставки */
.brh-co-options{display:grid;gap:12px}
.brh-option{position:relative;border:1px solid #d7e0d3;background:#fff;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
.brh-option:hover{border-color:#b9cdb0}
.brh-option:has(input:checked){border-color:#283b2d;background:#f6fbef;box-shadow:6px 6px 0 #e2ebdc}
.brh-option input[type=radio]{position:absolute;left:22px;top:24px;width:20px;height:20px;margin:0;accent-color:#283b2d;cursor:pointer}
.brh-option label{display:block;padding:20px 22px 20px 58px;cursor:pointer;margin:0;font-size:13px;line-height:1.55;color:#5f6c5b}
.brh-option .vmpayment_name,.brh-option .vmshipment_name{display:block;font-size:17px;font-weight:900;letter-spacing:-.03em;color:var(--ink)}
.brh-option .vmpayment_description,.brh-option .vmshipment_description{display:block;margin-top:4px}
.brh-option .vmpayment_cost,.brh-option .vmshipment_cost{display:inline-block;margin-top:6px;font-weight:800;color:#3c5a39}
.brh-option img{max-height:28px;width:auto;margin-right:8px;vertical-align:middle}
.brh-option .vmpayment,.brh-option .vmshipment{display:block}

.brh-co-note{margin-top:40px}

/* Вхід для тих, хто вже купував */
.brh-co-login{margin:0 0 44px;border:1px solid #dae3d5;background:#f1f5eb}
.brh-co-login>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:14px;padding:16px 20px;font-size:13px;color:#5f6c5b}
.brh-co-login>summary::-webkit-details-marker{display:none}
.brh-co-login>summary b{margin-left:auto;color:#40613c;border-bottom:1px solid currentColor;padding-bottom:3px;font-size:12px}
.brh-co-login-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#d5fa8d;color:#315234;font-size:15px}
.brh-co-login-body{padding:4px 20px 22px}
.brh-co-login-body form{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.brh-co-login-body form>*{margin:0}
.brh-co-login-body input[type=text],.brh-co-login-body input[type=password]{min-width:200px}
.brh-co-login-body .button,.brh-co-login-body button,.brh-co-login-body input[type=submit]{min-height:52px;padding:0 22px;border:0;background:#283b2d;color:#fff;font-weight:900;font-size:12px;cursor:pointer}
.brh-co-login-body a{font-size:12px;color:#6b7b67}

/* Підсумок */
.brh-co .cart-summary h2{color:inherit}
.brh-co .cart-summary-breakdown>div{margin-bottom:16px}
.brh-co .cart-summary-breakdown strong .PricesalesPrice,.brh-co .cart-summary strong span{color:inherit}
.brh-co-tos{display:flex;gap:12px;align-items:flex-start;margin:0 0 18px;padding:16px;background:rgba(255,255,255,.06);border:1px solid #476247;font-size:12px;line-height:1.55;color:#cfe0c9}
.brh-co-tos input[type=checkbox]{flex:0 0 auto;width:18px;height:18px;margin:1px 0 0;accent-color:#d5fa8d;cursor:pointer}
.brh-co-tos label{cursor:pointer;margin:0;font-size:12px;font-weight:700;color:#e2efdb}
.brh-co-tos a{color:#d5fa8d;text-decoration:underline;text-underline-offset:3px}
.brh-co-tos .asterisk{color:#ffb42e}
.brh-co-tos .terms-of-service,.brh-co-tos .vm-tos{display:inline}
.brh-co-tos.invalid,.brh-co-tos:has(.invalid){border-color:#ffb42e}
.brh-co button.cart-checkout-button{border:0;cursor:pointer;font-family:inherit;text-align:left}
.brh-co button.cart-checkout-button>span:first-child{font-size:14px}
.brh-co button.cart-checkout-button.is-loading,.brh-co button.cart-checkout-button[disabled]{opacity:.6;cursor:progress}
.brh-co-confirm-note{margin:14px 0 0;font-size:12px;line-height:1.6;color:#d5fa8d}
.brh-co .cart-payment-disabled{margin:18px 0 26px}
.brh-co-advertise{grid-column:1/-1}

/* Кроки в шапці */
.brh-co-steps{list-style:none;margin:0;padding:28px 30px;align-self:end;background:#fff;border:1px solid #dbe3d6;box-shadow:12px 12px 0 #e2ebdc;display:grid;gap:4px;counter-reset:none;min-width:280px}
.brh-co-steps li{display:flex;align-items:center;gap:16px;padding:12px 0;border-bottom:1px dashed #e1e8dc;font-size:14px;font-weight:800;color:#9aa696}
.brh-co-steps li:last-child{border-bottom:0}
.brh-co-steps b{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid #d3ddce;font-size:11px;letter-spacing:.06em;color:#9aa696}
.brh-co-steps li.is-done{color:#5b7356}
.brh-co-steps li.is-done b{background:#e4f2d3;border-color:#e4f2d3;color:#3c5a39}
.brh-co-steps li.is-active{color:var(--ink)}
.brh-co-steps li.is-active b{background:#283b2d;border-color:#283b2d;color:#d5fa8d}

/* Повідомлення VirtueMart / Joomla над кошиком */
.cart-page #system-message-container .alert{border-radius:0}

@media (max-width:1200px){
	.brh-co .cart-item-price{grid-column:auto}
}
@media (max-width:991px){
	.brh-co{padding:46px 0 80px}
	.brh-co .cart-summary{max-width:none}
	.brh-co-steps{display:none}
}
@media (max-width:640px){
	.brh-co{padding:34px 0 64px}
	.brh-co-grid{grid-template-columns:1fr;gap:16px}
	.brh-co-block{margin-top:48px}
	.brh-co .cart-item{grid-template-columns:96px minmax(0,1fr);gap:14px}
	.brh-co .cart-item-art{width:96px;height:110px}
	.brh-co .cart-item-art strong{font-size:54px}
	.brh-co .cart-item-price{grid-column:2;text-align:left;display:flex;gap:10px;align-items:baseline}
	.brh-co .cart-item-price>span{margin:0}
	.brh-co .cart-summary{padding:30px 22px 26px;box-shadow:8px 8px 0 #e2ebdc}
	.brh-co .cart-summary h2{font-size:42px}
	.brh-co-login>summary{flex-wrap:wrap}
	.brh-co-login-body input[type=text],.brh-co-login-body input[type=password]{min-width:0;width:100%}
	.brh-co-login-body form>*{width:100%}
	.brh-option label{padding:18px 16px 18px 50px}
	.brh-option input[type=radio]{left:16px;top:21px}
}

/* Уточнення після перевірки в браузері */
.brh-co .cart-item-art.art-seo{background:#d9efac}
.brh-co .cart-item-art.art-speed{background:#edb85d}
.brh-co .cart-item-art.art-integrations{background:#dce5f6}
.brh-co .cart-item-art.art-content{background:#e9dfec}
.brh-co .cart-item-art.art-commerce{background:#cfdfd0}
.brh-co .cart-item-art.art-cache{background:#d5e6d7}
.brh-co .cart-summary button.cart-checkout-button,.brh-co .cart-summary button.cart-checkout-button.vm-button-correct{display:flex;width:100%;min-height:0;padding:19px 22px;border-radius:0;background:#d5fa8d;color:#213325;justify-content:space-between}
.brh-co .cart-summary button.cart-checkout-button:hover{background:#c4e97a;color:#213325}
.brh-co-tos{align-items:center}
.brh-co-tos div.terms-of-service{flex:1;min-width:0}
.brh-co-tos div.terms-of-service label{display:block}
.brh-co-tos a.terms-of-service{color:#e2efdb;text-decoration:none;font-weight:700}
.brh-co-tos a.terms-of-service:hover{color:#d5fa8d;text-decoration:underline}
.brh-co-tos .vm2-termsofservice-icon{display:none}
