/* Bay Smokes payment methods: checkout options, payment details and screenshot upload. */

/* Logos next to the method name (classic + block checkout). */
.bsk-pm-logo { display: inline-block; vertical-align: middle; height: 24px; width: auto; max-width: none; margin: 0; border: 0; box-shadow: none; }
.bsk-pm-logo--chime { height: 15px; }
.bsk-pm-logo--applepay { height: 28px; }
/* Fixed sizes: theme rules like img { max-width: 100% } would otherwise shrink these to nothing in flex rows. */
img.bsk-pm-logo { max-width: none !important; flex: 0 0 auto; }
img.bsk-pm-logo--cashapp, img.bsk-pm-logo--zelle { width: 24px !important; height: 24px !important; }
img.bsk-pm-logo--applepay { width: 28px !important; height: 28px !important; }
img.bsk-pm-logo--chime { width: 49px !important; height: 15px !important; }
.bsk-pm-box__head img.bsk-pm-logo--cashapp, .bsk-pm-box__head img.bsk-pm-logo--zelle { width: 32px !important; height: 32px !important; }
.bsk-pm-box__head img.bsk-pm-logo--applepay { width: 38px !important; height: 38px !important; }
.bsk-pm-box__head img.bsk-pm-logo--chime { width: 65px !important; height: 20px !important; }
.bsk-pm-details__text { margin: 0 0 12px !important; }
.bsk-pm-logos { display: inline-flex; align-items: center; vertical-align: middle; }
.bsk-pm-logos .bsk-pm-logo--coin { width: 22px; height: 22px; margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.bsk-pm-logos .bsk-pm-logo--coin:first-child { margin-left: 0; }

/* Classic checkout: icon sits after the label text. */
.wc_payment_method label .bsk-pm-icon,
.wc_payment_method label img.bsk-pm-logo { float: none !important; margin-left: 8px !important; max-height: none !important; }
.wc_payment_method label .bsk-pm-logos.bsk-pm-icon { margin-left: 10px !important; }

/* Block checkout label. */
.bsk-pm-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.bsk-pm-label__logos { flex: 0 0 auto; }

/* Block checkout: payment methods as a 4-column row of tiles; the selected method's details open full-width below. */
.wc-block-checkout__payment-method .wc-block-components-radio-control:has(> .wc-block-components-radio-control-accordion-option) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.wc-block-checkout__payment-method .wc-block-components-radio-control:has(> .wc-block-components-radio-control-accordion-option)::after { display: none !important; }
.wc-block-checkout__payment-method .wc-block-components-radio-control > .wc-block-components-radio-control-accordion-option { display: contents; }
.wc-block-checkout__payment-method .wc-block-components-radio-control > .wc-block-components-radio-control-accordion-option::after { display: none !important; }
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option > .wc-block-components-radio-control__option { order: 0; display: flex; align-items: center; min-width: 0; height: 100%; padding: 14px 12px 14px 44px; border: 1.5px solid rgba(0,0,0,.15) !important; border-radius: 10px; background: #fff; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option > .wc-block-components-radio-control__option:hover { border-color: rgba(0,0,0,.35) !important; }
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option > .wc-block-components-radio-control__option:has(input:checked) { border-color: currentColor !important; box-shadow: inset 0 0 0 0.5px currentColor; }
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option > .wc-block-components-radio-control__option .wc-block-components-radio-control__option-layout { min-width: 0; }
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option .bsk-pm-label { flex-wrap: wrap; gap: 6px 8px; }
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option .bsk-pm-label__text { min-width: 0; overflow-wrap: anywhere; }
.wc-block-checkout__payment-method .wc-block-components-radio-control > .wc-block-components-radio-control-accordion-option > .wc-block-components-radio-control-accordion-content { order: 1; grid-column: 1 / -1; min-width: 0; padding: 16px; border: 1.5px solid currentColor; border-radius: 10px; }

/* Payment box content. */
.bsk-pm-checkout { color: #111; }
.bsk-pm-checkout > * + * { margin-top: 14px; }
.bsk-pm-desc { margin: 0; }
.bsk-pm-checkout [hidden] { display: none !important; }

.bsk-pm-nets-pick { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bsk-pm-nets-pick legend { grid-column: 1 / -1; font-weight: 600; margin-bottom: 8px; padding: 0; font-size: .95em; float: left; width: 100%; }
.bsk-pm-net { position: relative; display: block; margin: 0 !important; cursor: pointer; }
.bsk-pm-net input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.bsk-pm-net__card { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1.5px solid rgba(0,0,0,.14); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; line-height: 1.2; }
.bsk-pm-net:hover .bsk-pm-net__card { border-color: rgba(0,0,0,.3); }
.bsk-pm-net input:checked + .bsk-pm-net__card { border-color: var(--bsk-cta, #53b6c9); box-shadow: 0 0 0 1px var(--bsk-cta, #53b6c9); }
.bsk-pm-net input:focus-visible + .bsk-pm-net__card { outline: 2px solid var(--bsk-cta, #53b6c9); outline-offset: 2px; }
.bsk-pm-net__txt { display: flex; flex-direction: column; min-width: 0; }
.bsk-pm-net__txt strong { font-size: 14px; color: #111; }
.bsk-pm-net__txt small { font-size: 11.5px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bsk-pm-pick-first { margin: 0; padding: 10px 12px; border-radius: 8px; background: rgba(0,0,0,.04); font-size: 14px; color: #555; }

.bsk-pm-coin__icon { position: relative; display: inline-block; width: 28px; height: 28px; flex: 0 0 auto; }
.bsk-pm-coin__icon img { width: 28px !important; height: 28px !important; display: block; margin: 0 !important; }
.bsk-pm-coin__icon .bsk-pm-coin__badge { position: absolute; right: -4px; bottom: -3px; width: 14px !important; height: 14px !important; border-radius: 50%; box-shadow: 0 0 0 2px #fff; background: #fff; }

/* Payment details (checkout panel, and the order page when no screenshot was needed). */
.bsk-pm-panel { padding: 16px; border: 1px solid rgba(0,0,0,.1); border-radius: 12px; background: #fff; }
.bsk-pm-details__text { margin: 0 0 12px; color: #333; font-size: 14.5px; line-height: 1.5; }
.bsk-pm-details__grid { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.bsk-pm-details__rows { flex: 1 1 240px; margin: 0; min-width: 0; }
.bsk-pm-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid rgba(0,0,0,.07); }
.bsk-pm-row:first-child { border-top: 0; padding-top: 0; }
.bsk-pm-row dt { margin: 0; font-weight: 600; color: #555; font-size: 13.5px; }
.bsk-pm-row dd { margin: 0; display: flex; align-items: center; gap: 10px; min-width: 0; }
.bsk-pm-row__value { font-weight: 600; word-break: break-all; min-width: 0; }
.bsk-pm-row__value.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 500; font-size: 13px; background: #f5f6f7; padding: 4px 8px; border-radius: 6px; }
.bsk-pm-copy { flex: 0 0 auto; margin-left: auto !important; padding: 5px 12px !important; min-height: 0 !important; border: 1px solid rgba(0,0,0,.18) !important; border-radius: 999px !important; background: #fff !important; color: #111 !important; font-size: 12.5px !important; font-weight: 600; line-height: 1.3 !important; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; width: auto !important; }
.bsk-pm-copy:hover { border-color: rgba(0,0,0,.4) !important; }
.bsk-pm-copy.is-copied { background: #e6f6ea !important; border-color: #9ad5a8 !important; color: #116329 !important; }
.bsk-pm-details__qr { flex: 0 0 auto; margin: 0; text-align: center; }
.bsk-pm-details__qr img, .bsk-pm-qr { display: block; width: 150px; height: 150px; object-fit: contain; border: 1px solid rgba(0,0,0,.08); border-radius: 10px; background: #fff; padding: 6px; box-sizing: border-box; }
.bsk-pm-qr svg { display: block; width: 100%; height: 100%; }
.bsk-pm-details__qr figcaption { font-size: 12px; color: #666; margin-top: 6px; }
.bsk-pm-details__warn { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: #fff7e6; color: #7a4b00; font-size: 13px; }

/* Optional reference field. */
.bsk-pm-ref { margin: 0; }
.bsk-pm-ref label { display: block; font-size: .9em; margin-bottom: 4px; }
.bsk-pm-ref input { width: 100%; box-sizing: border-box; }
.bsk-pm-ref__input { padding: 10px 12px; border: 1px solid rgba(0,0,0,.2); border-radius: 6px; font: inherit; background: #fff; }

/* Screenshot upload. */
.bsk-pm-proof__label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.bsk-pm-proof__label abbr { color: #d63638; text-decoration: none; border: 0; }
.bsk-pm-proof__drop { position: relative; display: flex !important; flex-direction: column; align-items: center; gap: 4px; padding: 20px 16px; border: 2px dashed rgba(0,0,0,.2); border-radius: 12px; background: #fff; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; margin: 0 !important; }
.bsk-pm-proof__drop:hover, .bsk-pm-proof__drop:focus-within { border-color: var(--bsk-cta, #53b6c9); background: rgba(83,182,201,.05); }
.bsk-pm-proof__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.bsk-pm-proof__icon { width: 34px; height: 34px; border-radius: 50%; background: var(--bsk-cta, #53b6c9); position: relative; }
.bsk-pm-proof__icon::before { content: ""; position: absolute; left: 50%; top: 9px; width: 2px; height: 14px; margin-left: -1px; background: #fff; }
.bsk-pm-proof__icon::after { content: ""; position: absolute; left: 50%; top: 9px; width: 8px; height: 8px; margin-left: -5px; border-left: 2px solid #fff; border-top: 2px solid #fff; transform: rotate(45deg); transform-origin: center; }
.bsk-pm-proof__cta { font-weight: 600; color: #111; font-size: 14.5px; }
.bsk-pm-proof__hint { font-size: 12.5px; color: #666; }
.bsk-pm-proof.is-uploading .bsk-pm-proof__drop { opacity: .7; cursor: progress; }
.bsk-pm-proof.is-uploading .bsk-pm-proof__icon { animation: bsk-pm-pulse 1s ease-in-out infinite; }
@keyframes bsk-pm-pulse { 50% { transform: scale(.85); opacity: .6; } }
.bsk-pm-proof__done { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid #9ad5a8; border-radius: 12px; background: #f1faf3; }
.bsk-pm-proof__thumb { width: 52px !important; height: 52px !important; object-fit: cover; border-radius: 8px; border: 1px solid rgba(0,0,0,.08); background: #fff; flex: 0 0 auto; margin: 0 !important; }
.bsk-pm-proof__thumb--file { display: inline-block; }
/* width:0 + flex-grow: the (nowrap) file name adds nothing to the min-content width, so a long name can't push the checkout wider. */
.bsk-pm-proof__done { min-width: 0; max-width: 100%; }
.bsk-pm-proof__meta { display: flex; flex-direction: column; min-width: 0; width: 0; flex: 1 1 0; line-height: 1.3; overflow: hidden; }
.bsk-pm-proof__meta strong { color: #116329; font-size: 14px; }
.bsk-pm-proof__name { display: block; max-width: 100%; font-size: 12.5px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bsk-pm-proof__change { flex: 0 0 auto; padding: 6px 14px !important; min-height: 0 !important; border: 1px solid rgba(0,0,0,.2) !important; border-radius: 999px !important; background: #fff !important; color: #111 !important; font-size: 13px !important; font-weight: 600; line-height: 1.3 !important; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; width: auto !important; }
.bsk-pm-proof__error { margin: 8px 0 0; color: #b32d2e; font-size: 13.5px; font-weight: 600; }

/* "Other payment method": chat-bubble icon on the tile, and the seller's contact details. */
.bsk-pm-contact__icon { display: inline-block; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3Cpath d='M9.5 9.5a2.5 2.5 0 1 1 3.3 2.4c-.5.2-.8.6-.8 1.1v.5'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E") center / 16px no-repeat; }
.bsk-pm-contact__title { display: block; margin-bottom: 8px; font-size: 14.5px; }
.bsk-pm-contact__list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 6px; }
.bsk-pm-contact__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 !important; padding: 8px 0 0; border-top: 1px solid rgba(0,0,0,.07); font-size: 14px; min-width: 0; }
.bsk-pm-contact__item:first-child { border-top: 0; padding-top: 0; }
.bsk-pm-contact__label { flex: 0 0 110px; font-weight: 600; color: #555; font-size: 13.5px; }
.bsk-pm-contact__value { flex: 1 1 160px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.bsk-pm-contact__value a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bsk-pm-ref abbr { color: #d63638; text-decoration: none; border: 0; }
.bsk-pm-box--contact .bsk-pm-contact__list { margin-top: 14px !important; }
.bsk-pm-box--contact .bsk-pm-contact__chosen { margin-top: 8px; font-weight: 600; }

/* Order confirmation / My Account box. */
.bsk-pm-box { margin: 0 0 28px; padding: 20px 22px; border: 1px solid rgba(0,0,0,.1); border-radius: 14px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.04); color: #111; }
.bsk-pm-box--received { border-color: #9ad5a8; background: #f6fcf7; }
.bsk-pm-box__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bsk-pm-box__head .bsk-pm-logo { height: 32px; }
.bsk-pm-box__head .bsk-pm-logo--chime { height: 20px; }
.bsk-pm-box__head .bsk-pm-logo--applepay { height: 38px; }
.bsk-pm-box__head .bsk-pm-coin__icon, .bsk-pm-box__head .bsk-pm-coin__icon img { width: 34px !important; height: 34px !important; }
.bsk-pm-box__title { margin: 0 !important; font-size: 20px !important; line-height: 1.25; }
.bsk-pm-box__text { margin: 0; color: #333; }

/* Everything may shrink to the width of the payment box (no fixed min-content widths). */
.bsk-pm-checkout, .bsk-pm-checkout * { box-sizing: border-box; }
.bsk-pm-checkout, .bsk-pm-panel, .bsk-pm-details, .bsk-pm-details__grid, .bsk-pm-proof { min-width: 0; max-width: 100%; }
.bsk-pm-nets-pick { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
.bsk-pm-net, .bsk-pm-net__card, .bsk-pm-net__txt { min-width: 0; }
/* The upload box never reports its content width to WooCommerce's layout, so it always fits the payment box. */
.bsk-pm-proof { contain: inline-size; width: 100%; }
.bsk-pm-details__text, .bsk-pm-details__warn, .bsk-pm-desc { overflow-wrap: anywhere; }

/* Tablets and phones. */
@media (max-width: 600px) {
	/* Payment method tiles: two per row on phones. */
	.wc-block-checkout__payment-method .wc-block-components-radio-control:has(> .wc-block-components-radio-control-accordion-option) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option > .wc-block-components-radio-control__option { padding: 12px 10px 12px 40px; }
	.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option > .wc-block-components-radio-control__option .wc-block-components-radio-control__input { left: 12px; }
	.wc-block-checkout__payment-method .wc-block-components-radio-control > .wc-block-components-radio-control-accordion-option > .wc-block-components-radio-control-accordion-content { padding: 12px; }

	.bsk-pm-box { padding: 16px; }
	.bsk-pm-checkout > * + * { margin-top: 12px; }
	.bsk-pm-desc { font-size: 14px; line-height: 1.45; }

	/* Coin picker: two compact columns; long network names wrap instead of widening the grid. */
	.bsk-pm-nets-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	.bsk-pm-nets-pick legend { font-size: 14px; margin-bottom: 6px; }
	.bsk-pm-net__card { gap: 8px; padding: 8px; border-radius: 9px; min-height: 52px; }
	.bsk-pm-net .bsk-pm-coin__icon, .bsk-pm-net .bsk-pm-coin__icon > img:first-child { width: 24px !important; height: 24px !important; }
	.bsk-pm-net__txt strong { font-size: 13.5px; }
	.bsk-pm-net__txt small { font-size: 11px; white-space: normal; overflow: visible; line-height: 1.25; }

	/* Details: label above value, copy button stays on the right, QR centred under the rows. */
	.bsk-pm-panel { padding: 12px; border-radius: 10px; }
	.bsk-pm-details__text { font-size: 14px; line-height: 1.45; margin-bottom: 10px !important; }
	.bsk-pm-details__grid { flex-direction: column; align-items: stretch; gap: 12px; }
	.bsk-pm-details__rows { flex: 1 1 auto; width: 100%; }
	.bsk-pm-row { grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 8px 0; }
	.bsk-pm-row dt { font-size: 12.5px; font-weight: 600; }
	.bsk-pm-row dd { gap: 8px; }
	.bsk-pm-row__value { font-size: 15px; }
	.bsk-pm-row__value.code { font-size: 12.5px; padding: 5px 7px; line-height: 1.4; }
	.bsk-pm-copy { min-height: 34px !important; padding: 6px 14px !important; font-size: 13px !important; }
	.bsk-pm-details__qr { align-self: center; margin: 0 auto; }
	.bsk-pm-details__qr img, .bsk-pm-qr { width: 140px; height: 140px; }
	.bsk-pm-details__warn { margin-top: 10px; font-size: 12.5px; line-height: 1.45; }

	/* Reference field and upload. */
	.bsk-pm-ref__input { font-size: 16px; } /* 16px stops iOS zooming in on focus. */
	.bsk-pm-proof__label { font-size: 14px; }
	.bsk-pm-proof__drop { padding: 16px 12px; }
	.bsk-pm-proof__hint { font-size: 12px; }
	.bsk-pm-proof__done { gap: 10px; padding: 8px 10px; }
	.bsk-pm-proof__thumb { width: 44px !important; height: 44px !important; }
	.bsk-pm-proof__meta strong { font-size: 13.5px; }
	.bsk-pm-proof__change { min-height: 34px !important; padding: 6px 12px !important; }

	/* Logos in the method list. */
	.bsk-pm-label { gap: 8px; }
	.bsk-pm-label__text { min-width: 0; }
	.bsk-pm-logos .bsk-pm-logo--coin { width: 20px; height: 20px; margin-left: -5px; }
}

/* Very small phones (≈320px). */
@media (max-width: 360px) {
	.bsk-pm-panel { padding: 10px; }
	.bsk-pm-net__card { padding: 7px; gap: 6px; }
	.bsk-pm-proof__done { flex-wrap: wrap; }
	.bsk-pm-proof__meta { flex-basis: calc(100% - 60px); }
	.bsk-pm-proof__change { margin-left: 54px; }
	.bsk-pm-box__title { font-size: 18px !important; }
}
