/* Accept Software store: follows the look of acceptsoftware.ro. */
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 Arial, Helvetica, sans-serif; color: #404040; background: #f5f5f5; }
a { color: #00a7f3; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid #dd4436; outline-offset: 2px; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 10px; }

.top { height: 70px; background: url(/assets/img/header_bg.jpg) repeat-x; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; }
.logo img { display: block; width: 162px; height: 40px; }
.menu { display: flex; flex-wrap: nowrap; white-space: nowrap; margin: 0; padding: 0; list-style: none; font: bold 12px/18px Arial, Helvetica, sans-serif; text-transform: uppercase; }
.menu li { margin: 0 0 0 34px; }
.menu a { display: block; color: #bdbdbd; text-decoration: none; }
.menu a:hover, .menu a[aria-current=page] { color: #fff; }
.menu .home a { width: 15px; height: 18px; overflow: hidden; text-indent: 500px; background: url(/assets/img/sprite.png) 0 -48px no-repeat; }
.menu .home a:hover { background-position: 0 -66px; }

.band { height: 159px; background: url(/assets/img/band_bg.jpg) repeat-x; display: flex; align-items: center; justify-content: center; text-align: center; }
.band h1 { margin: 0; font: bold 47px/1 Arial, Helvetica, sans-serif; color: #fff; text-shadow: 0 3px 1px #000; text-transform: uppercase; }
.band h1 a { color: inherit; text-decoration: none; }
.bar { height: 30px; background: url(/assets/img/bar_bg.jpg) repeat-x; }

.page { display: flex; gap: 20px; align-items: flex-start; padding-top: 20px; padding-bottom: 74px; min-height: 300px; }
.content { flex: 0 1 620px; min-width: 0; }
.sidebar { flex: 0 0 340px; }
.box { background: #fff; border: 1px solid #e6e6e6; }
.title { margin: 0 0 20px; padding: 18px 14px; text-align: center; font-size: 25px; font-weight: bold; line-height: 1.2; color: #1f1f1f; text-transform: uppercase; }
.summary { margin: 0 0 14px; color: #737373; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.product { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 14px 12px; }
.product h2 { margin: 0; font-size: 15px; line-height: 1.3; color: #262626; overflow-wrap: anywhere; }
.code { color: #8c8c8c; font-size: 12px; }
.stock { font-size: 12px; color: #4f8a10; }
.stock.out { color: #dd4436; }
.price { margin-top: auto; padding-top: 10px; border-top: 1px solid #f0f0f0; font-size: 18px; font-weight: bold; color: #dd4436; }
.price small { display: block; font-size: 11px; font-weight: normal; color: #8c8c8c; }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 24px; color: #737373; }
.button { display: inline-block; padding: 7px 16px; font-weight: bold; color: #fff; background: #3d3d3d; border-radius: 4px; text-decoration: none; }
.button:hover { background: #dd4436; text-decoration: none; }

.widget { margin-bottom: 20px; }
.widget h3 { margin: 0; padding: 12px 14px; font-size: 13px; color: #262626; background: #f7f7f7; border-bottom: 1px solid #e6e6e6; }
.widget .inner { padding: 14px; }
.search { display: flex; gap: 6px; }
.search input { flex: 1; min-width: 0; padding: 6px 10px; font: inherit; font-size: 12px; color: #404040; background: #eee; border: 1px solid #ddd; border-radius: 4px; box-shadow: inset 0 1px 2px rgba(0,0,0,.08); }
.search button { width: 32px; padding: 0; color: #404040; background: #fff; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; }
.search button:hover { color: #dd4436; }
.cats { margin: 0; padding: 6px 14px 10px; list-style: none; }
.cats li + li { border-top: 1px solid #eee; }
.cats a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 6px; font-weight: bold; color: #262626; text-decoration: none; }
.cats a span { font-weight: normal; color: #8c8c8c; }
.cats a:hover, .cats a[aria-current=true] { color: #dd4436; }
.cats a[aria-current=true] { border: 1px solid #e9e9e9; border-radius: 0 4px 4px 0; border-left: 3px solid #dd4436; }

.notice { padding: 24px; text-align: center; }
.notice h2 { margin: 0 0 8px; font-size: 20px; color: #262626; }

.footer { color: #737373; background: #1f2020; }
.footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 20px; padding: 40px 10px 10px; }
.footer h3 { margin: 10px 0 15px; font-size: 15px; color: #fff; }
.footer ul { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.footer li { margin-bottom: 8px; }
.footer a { color: #8c8c8c; }
.footer a:hover { color: #dd4436; text-decoration: none; }
.footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: 10px 10px 0; padding: 16px 0 26px; font-size: 13px; border-top: 1px solid #333; }
.footer .bottom .site { color: #dd4436; }

@media (max-width: 960px) {
	.top { height: auto; background-size: auto 100%; }
	.top .wrap { height: auto; flex-wrap: wrap; padding-block: 15px; }
	.menu { flex-wrap: wrap; white-space: normal; gap: 8px 22px; }
	.menu li { margin: 0; }
	.page { flex-direction: column; }
	.content, .sidebar { flex: none; width: 100%; }
	.sidebar { order: -1; }
	.band { height: 110px; background-size: auto 100%; }
	.band h1 { font-size: 34px; }
}

/* Account pages */
.form { padding: 20px 24px 22px; }
.form p { margin: 0 0 14px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 4px; font-size: 13px; font-weight: bold; color: #262626; }
.field input { width: 100%; max-width: 360px; padding: 8px 10px; font: inherit; color: #404040; background: #fff; border: 1px solid #ddd; border-radius: 4px; }
.field input:focus { border-color: #8c8c8c; outline: none; }
.form .button, .notice-confirm .button { border: 0; cursor: pointer; font: inherit; font-weight: bold; }
.form-links { margin: 16px 0 0 !important; font-size: 13px; }
.form-links a { margin-right: 18px; }
.form-error { padding: 10px 12px; color: #a12a1f; background: #fdeceb; border-left: 3px solid #dd4436; }
.form-ok { padding: 10px 12px; color: #2f5d0d; background: #eef6e6; border-left: 3px solid #4f8a10; }
.account-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.account-links form { margin: 0; }
button.link { padding: 0; font: inherit; color: #00a7f3; background: none; border: 0; cursor: pointer; }
button.link:hover { text-decoration: underline; }
.notice-confirm { margin-bottom: 16px; padding: 14px; border-left: 3px solid #dd4436; }
.notice-confirm p { margin: 0 0 10px; }
.details { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; margin: 0; padding: 18px 20px; }
.details dt { font-weight: bold; color: #262626; }
.details dd { margin: 0; }
/* The account box: all buttons, the same width; Deconectare in red. */
.account-links { align-items: stretch; gap: 6px; }
.account-links span { margin-bottom: 2px; }
.account-links .button { display: block; width: 100%; padding: 5px 12px; text-align: center; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: bold; }

/* Jumps within a page glide instead of snapping, unless the visitor asked their system for less motion. */
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

/* Cart, checkout, orders */
.product .add { margin: 8px 0 0; }
.product .add .button { width: 100%; padding: 6px 10px; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: bold; }
.account-links .button.cart-link { background: #dd4436; }
.account-links .button.cart-link:hover { background: #b8281b; }
.cart { padding: 0; overflow-x: auto; margin-bottom: 18px; }
.cart table { width: 100%; border-collapse: collapse; }
.cart th { padding: 10px 14px; text-align: left; font-size: 12px; text-transform: uppercase; color: #8c8c8c; border-bottom: 2px solid #eee; }
.cart td { padding: 10px 14px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.cart tfoot td { border-bottom: 0; font-size: 16px; }
.cart .num { text-align: right; white-space: nowrap; }
.cart .code { color: #8c8c8c; font-size: 12px; }
.cart .qty { width: 64px; padding: 5px 6px; font: inherit; text-align: right; border: 1px solid #ddd; border-radius: 4px; }
button.remove { color: #dd4436; }
.cart-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 14px; border-top: 1px solid #eee; }
.button.light { color: #262626; background: #eee; }
.button.light:hover { background: #ddd; }
.button.go { background: #dd4436; }
.button.go:hover { background: #b8281b; }
.cart-actions .button, .checkout .button { border: 0; cursor: pointer; font: inherit; font-weight: bold; }
.choice { margin: 0 0 16px; padding: 0; border: 0; }
.choice legend { margin-bottom: 6px; font-size: 13px; font-weight: bold; color: #262626; }
.choice label { display: block; padding: 4px 0; cursor: pointer; }
.field textarea { width: 100%; max-width: 480px; padding: 8px 10px; font: inherit; border: 1px solid #ddd; border-radius: 4px; resize: vertical; }
.checkout .pay { padding: 10px 12px; background: #f7f7f7; border-radius: 4px; }
.summary-lines { margin: 0 0 14px; padding: 0; list-style: none; max-width: 480px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid #f0f0f0; }
.summary-lines .sum { font-weight: bold; border-bottom: 0; }
.muted { color: #8c8c8c; font-size: 13px; }
.status { display: inline-block; padding: 2px 10px; font-size: 12px; font-weight: bold; border-radius: 999px; }
.status.s-new { color: #8a5a00; background: #fff3d6; }
.status.s-accepted { color: #2f5d0d; background: #eef6e6; }
.status.s-declined { color: #a12a1f; background: #fdeceb; }
.history { margin-bottom: 14px; padding: 14px 20px; }
.history h3 { margin: 0 0 8px; font-size: 14px; }
.history ul { margin: 0; padding-left: 18px; }
.history li { margin-bottom: 6px; }
.details { margin-bottom: 18px; }
.default-submit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; padding: 0; }
.cart { position: relative; }
.stepper { display: inline-flex; align-items: stretch; vertical-align: middle; }
.stepper .qty { width: 52px; border-radius: 0; border-left: 0; border-right: 0; -moz-appearance: textfield; }
.stepper .qty::-webkit-inner-spin-button, .stepper .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.step { width: 30px; padding: 0; font: inherit; font-size: 16px; font-weight: bold; line-height: 1; color: #262626; background: #eee; border: 1px solid #ddd; cursor: pointer; }
.step:first-child { border-radius: 4px 0 0 4px; }
.step:last-child { border-radius: 0 4px 4px 0; }
.step:hover { background: #ddd; }
.step:disabled { color: #bbb; background: #f5f5f5; cursor: default; }
button.remove { white-space: nowrap; }
.cart th.quantity, .cart td.quantity { text-align: center; white-space: nowrap; }
.cart tfoot .vat { display: block; font-size: 12px; color: #8c8c8c; }
.cart .unit { display: inline-block; min-width: 34px; margin-left: 6px; text-align: left; }
.stepper .qty { text-align: center; }
@media (max-width: 600px) {
	.cart th, .cart td { padding: 8px 6px; }
	.cart .price-col { display: none; }
	.cart .unit { display: block; min-width: 0; margin: 3px 0 0; text-align: center; font-size: 12px; }
	.step { width: 26px; }
	.stepper .qty { width: 38px; }
	button.remove { white-space: normal; font-size: 13px; }
}
.checkout:has(input[name="delivery"][value="pickup"]:checked) .field.address { display: none; }

/* Order management */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; margin-bottom: 18px; }
.tabs .tab { padding: 6px 12px; color: #404040; text-decoration: none; border-radius: 4px; }
.tabs .tab span { margin-left: 4px; padding: 0 7px; font-size: 12px; color: #8c8c8c; background: #f0f0f0; border-radius: 999px; }
.tabs .tab:hover { background: #f5f5f5; }
.tabs .tab.on { color: #fff; background: #262626; }
.tabs .tab.on span { color: #262626; background: #fff; }
.status.s-completed { color: #1f4f7a; background: #e6f0fa; }
.decisions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.decisions .decide { margin: 0; padding: 16px; }
.decisions .decide .field { margin-bottom: 10px; }
.decisions .decide textarea { max-width: none; }
.decisions .decide .button { width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: bold; padding: 9px 12px; }
.button.ok { background: #4f8a10; }
.button.ok:hover { background: #3d6c0c; }
/* Order lists: the whole row opens the order. */
.rows tbody tr { position: relative; transition: background-color .15s; }
.rows tbody tr:hover { background: #fdf1f0; }
.rows tbody tr:hover .row-link { color: #dd4436; }
.rows .row-link::after { content: ""; position: absolute; inset: 0; }
.rows .row-link:focus-visible { outline: none; }
.rows tbody tr:has(.row-link:focus-visible) { outline: 2px solid #dd4436; outline-offset: -2px; }

/* Account box: the cart is the one button, the rest is a short menu. */
.account-links .hello { margin-bottom: 4px; }
.account-menu { display: flex; flex-direction: column; margin-top: 4px; }
.account-menu a { padding: 7px 2px; color: #404040; text-decoration: none; border-bottom: 1px solid #f0f0f0; transition: color .15s, padding-left .15s; }
.account-menu a:last-child { border-bottom: 0; }
.account-menu a:hover { padding-left: 6px; color: #dd4436; }
.account-links button.logout { align-self: flex-start; margin-top: 2px; padding: 0 2px; font-size: 13px; color: #dd4436; }
.account-links .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.account-links .pair .button { padding: 5px 6px; white-space: nowrap; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.account-actions .button { padding: 9px 18px; font-weight: bold; }
