.aby-page { padding-bottom: calc(var(--aby-tray-height, 140px) + 12px); }
.aby-page [hidden] { display: none !important; }

.aby-filters button {
   appearance: none;
   border: 0;
   border-radius: 0;
   background: transparent;
}

.aby-catalogue [data-bundle-no-results] { padding-block: 24px; }

.aby-photo, .aby-card h2 button { appearance: none; padding: 0; border: 0; background: none; color: var(--ink); border-radius: 0; display: block; text-align: left; }
.aby-photo { width: 100%; height: 100%; }
.aby-photo > img, .aby-photo picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 33%; }
.aby-quick-view {
   position: absolute; bottom: 10px; right: 10px; min-height: 32px;
   padding: 6px 9px 6px 11px; display: flex; align-items: center; gap: 12px;
   background: #fff; border: 1px solid #e5e3e1; border-radius: .25rem;
   font: 600 12px/1 var(--diary-type); transition: background-color .2s, color .2s;
}
.aby-quick-view span { font-size: 16px; line-height: 1; }
.aby-photo:hover .aby-quick-view, .aby-photo:focus-visible .aby-quick-view { background: var(--ink); color: white; }
@media (hover: hover) and (pointer: fine) {
   .aby-photo:hover .diary-card-hover-photo { opacity: 1; }
}
.aby-add-status {
   display: flex; align-items: center; gap: 6px;
   min-height: 18px; margin-top: 4px;
   color: #4c4a47; font: 500 12px/1.4 var(--diary-type);
}
.aby-add-status:not(:empty)::before {
   content: ''; flex: none; width: 18px; height: 18px;
   background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%232f6f54'%3E%3Ccircle cx='9' cy='9' r='8' fill='%23effbef' stroke-width='1.5'/%3E%3Cpath d='m5 9 2.6 2.6 5.4-5.4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.aby-card .diary-card-body { padding: 11px 0 0; }
.aby-card h2 { margin: 0 0 4px; }
.aby-card h2 :is(button,a) { color: inherit; font: 620 clamp(14px, 1.27vw, 17px)/1.25 var(--diary-type); }
.aby-card h2 :is(button,a):hover { text-decoration: underline; text-underline-offset: 3px; }
.aby-color { margin: 0; font-size: 13px; color: #5f5e5a; }
.aby-page .aby-card-price { margin: 6px 0 12px; }
.aby-price ins, .aby-page .diary-price ins { color: var(--diary-sale-price); text-decoration: none; }
.aby-quick > span { display: block; font: 650 11px/1.4 var(--diary-type); margin-bottom: 5px; color: #4c4a47; }
.aby-sizes { display: flex; gap: 5px; flex-wrap: wrap; }
.aby-sizes button {
   position: relative; min-height: 34px; min-width: 34px; padding: 4px 6px;
   font: 560 12px/1.25 var(--diary-type); color: var(--ink);
   border: 1px solid #d6d4d0; background: #fff; border-radius: .25rem;
}
.aby-sizes button:hover:not(:disabled), .aby-sizes button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.aby-sizes button:disabled { color: #8a8781; background: #f5f4f2; text-decoration: line-through; cursor: default; }

.aby-tray {
   position: fixed; inset: auto 0 0; z-index: 80; padding: 10px var(--diary-grid-edge) max(10px, env(safe-area-inset-bottom));
   background: #fff; border-top: 1px solid var(--ink);
}
.aby-tray-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(18px, 4vw, 62px); align-items: center; max-width: 1560px; margin: auto; }
.aby-tray-head { min-width: 0; }
.aby-tray-toggle { display: flex; align-items: center; gap: 8px; padding: 2px 0 6px; background: none; color: var(--ink); border: 0; font: 650 15px/1.2 var(--diary-type); }
.aby-tray-toggle [data-bundle-count] { font: 480 12px/1.2 var(--diary-type); color: #55524d; margin-left: 2px; }
.aby-tray-toggle svg { display: block; }
.aby-tray.is-expanded .aby-tray-toggle svg { transform: rotate(180deg); }
.aby-tray:not(.is-expanded) .aby-selection { display: none; }
.aby-selection { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; list-style: none; padding: 0; margin: 0; }
.aby-selection li { min-width: 0; min-height: 54px; }
.aby-slot-empty {
   height: 100%; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
   border: 1px dashed #c9c6c2; background: #fbfaf9; font-size: 11px; color: #5f5e5a;
}
.aby-slot-empty strong, .aby-slot-discount { color: var(--diary-sale-price); }
.aby-slot-item {
   height: 100%; display: grid; grid-template-columns: 39px minmax(0, 1fr) 25px; align-items: center;
   grid-gap: 6px; padding: 3px; border: 1px solid #e4e1df; background: #fff;
}
.aby-slot-photo { width: 39px; height: 48px; object-fit: cover; }
.aby-slot-details { overflow: hidden; display: grid; gap: 2px; font-size: 11px; line-height: 1.25; }
.aby-slot-details strong, .aby-slot-details span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aby-slot-meta { display: flex; gap: 4px; flex-wrap: wrap; }
.aby-slot-meta .aby-slot-discount { font-weight: 680; white-space: nowrap; }
.aby-remove { min-height: 28px; width: 25px; padding: 0; border: 0; background: none; color: var(--ink); font: 400 20px/1 var(--diary-type); }
.aby-tray-action { display: flex; gap: 15px; align-items: center; }
.aby-total { display: grid; text-align: right; gap: 2px; white-space: nowrap; font-size: 15px; line-height: 1.15; }
.aby-total span { color: #58544f; font-size: 11px; }
.aby-primary {
   min-height: 46px; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: .25rem;
   padding: 0 18px; font: 640 14px/1.2 var(--diary-type); text-align: center;
}
.aby-primary:hover:not(:disabled) { background: #373634; }
.aby-primary:disabled { background: #dedbd7; color: #514f4a; border-color: #dedbd7; cursor: default; }
.aby-status { grid-column: 1/-1; font-size: 12px; color: #55524d; margin: 5px 0 0; }

.aby-dialog {
   --ink: #181817; position: fixed; inset: 0 0 0 auto; width: clamp(390px, 34vw, 510px);
   max-width: none; height: 100%; max-height: none; margin: 0; padding: 0;
   border: 0; background: #fff; color: var(--ink); overflow: hidden;
}
.aby-preview-content { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.aby-dialog::backdrop { background: rgb(19 16 15 / 48%); }
.aby-close {
   position: absolute; right: 13px; top: 13px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px;
   padding: 0; background: #fff; border: 1px solid #dedbd7; border-radius: .25rem; color: var(--ink);
}
.aby-preview-message { margin: 65px 26px 20px; }
.aby-preview-content > .aby-primary { margin: 0 26px 24px; }
.aby-preview-gallery { background: #f2f1ef; min-width: 0; }
.aby-preview-photo { position: relative; }
.aby-preview-photo figure { margin: 0; }
.aby-preview-photo figure { aspect-ratio: 100 / 145; }
.aby-preview-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.aby-gallery-arrow {
   position: absolute; top: 50%; left: 8px; transform: translateY(-50%); width: 35px; height: 35px; background: #fff;
   border: 1px solid #dedbd7; border-radius: .25rem; color: var(--ink); font: 450 24px/1 var(--diary-type); padding: 0;
}
.aby-gallery-arrow.next { left: auto; right: 8px; }
.aby-thumbnails { position: relative; display: flex; gap: 5px; overflow-x: auto; padding: 6px; background: #fff; }
.aby-thumbnails button { flex: 0 0 47px; padding: 0; border: 1px solid transparent; border-radius: 0; background: #f1f0ee; }
.aby-thumbnails button[aria-current] { border-color: var(--ink); }
.aby-thumbnails img { display: block; height: 59px; width: 100%; object-fit: cover; }
.aby-preview-info { padding: 22px clamp(18px, 3vw, 30px) 30px; min-width: 0; }
.aby-preview-info .aby-preview-title {
   margin: 12px 0;
   font: 600 clamp(23px, 2vw, 32px)/1.12 var(--buy-type);
   letter-spacing: -.032em;
   text-transform: capitalize;
}
.aby-preview-info .diary-trust { justify-content: flex-start; margin: 0; }
.aby-preview-price, .aby-preview-info .diary-product-colors { margin: 0 0 16px; }
.aby-preview-price { font: 600 22px/1.2 var(--buy-type); }
.aby-preview-price del { font-size: 16px; font-weight: 400; }
.aby-preview-price ins { font-weight: 700; }
.aby-preview-info .diary-product-colors p, .aby-size-label { margin: 0 0 7px; font: 620 13px/1.3 var(--diary-type); }
.aby-dialog .diary-color-choice { background: #fff; padding: 2px; }

.aby-preview-info .aby-sizes button { min-width: 44px; min-height: 38px; border-radius: 0; }
.aby-preview-info .aby-sizes button[aria-pressed="true"] { background: #151515; color: #fff; }
.aby-preview-add { width: 100%; min-height: 54px; margin-top: 17px; }
.aby-description { margin-top: 22px; padding-block: 14px; border-block: 1px solid #ddd; font-size: 14px; }
.aby-description summary { font-size: 15px; font-weight: 600; cursor: pointer; }
.aby-description p { margin: 9px 0 0; }
.aby-page button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
html:has(.aby-dialog[open]) { overflow: hidden; }
body:has(.aby-page) .bf-wheel .bf-wheel__launcher { bottom: calc(var(--aby-tray-height, 140px) + 12px); }
@media (max-width: 767px) {
   .aby-dialog { inset: auto 0 0; width: 100%; height: min(91dvh, 760px); border-radius: 9px 9px 0 0; }
   .aby-preview-photo figure { aspect-ratio: 4 / 5; }
   .aby-preview-info { padding: 16px 17px max(19px, env(safe-area-inset-bottom)); }
   .aby-close { top: 8px; right: 8px; }
   .aby-thumbnails button { flex-basis: 38px; }
   .aby-thumbnails img { height: 46px; }
}
@media (max-width: 680px) {
   .aby-quick-view { padding: 4px 6px; min-height: 28px; right: 6px; bottom: 6px; gap: 5px; font-size: 10px; }
   .aby-sizes { gap: 3px; }
   .aby-sizes button { min-width: 29px; min-height: 34px; padding-inline: 4px; }
   .aby-tray { padding: 8px 13px max(8px, env(safe-area-inset-bottom)); }
   .aby-tray-inner { grid-template-columns: 1fr; gap: 3px; }
   .aby-tray-toggle { width: 100%; min-height: 28px; padding-top: 0; }
   .aby-tray-toggle svg { display: block; margin-left: auto; }
   .aby-tray .aby-slot-item { grid-template-columns: 29px minmax(0, 1fr) 18px; gap: 3px; }
   .aby-slot-photo { width: 29px; height: 37px; }
   .aby-remove { width: 18px; }
   .aby-tray-action { justify-content: space-between; grid-row: 3; }
   .aby-total { text-align: left; }
   .aby-tray-action .aby-primary { min-height: 41px; flex-basis: 65%; }
   .aby-status { grid-row: 2; margin: 0 0 2px; line-height: 1.2; }
}
