/* OpenCart forms and page boundaries; the V1 component styles remain in their own files. */
/* Cart drawer: one viewing entry on both device sizes. */
#sidecart .cart__view { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; padding: 10px 18px; margin: 0 0 16px; background: #f2f2f0; color: #252525; border: 0; border-radius: 8px; text-decoration: none; font-size: 13px; }
#sidecart .cart__view:hover { background: #e8e8e5; }
#sidecart .cart__checkout { margin-bottom: 10px; }
#sidecart .cart__items { overscroll-behavior: contain; }
@media (max-width: 700px) {
  #sidecart.modal .modal__content { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; }
  #sidecart .cart__header, #sidecart .cart__items { padding-left: 20px; padding-right: 20px; }
  #sidecart .cart__footer { padding: 14px 20px max(16px, env(safe-area-inset-bottom)); }
  #sidecart .cart__amounts { padding: 12px 0; }
  #sidecart .cart__checkout { margin-top: 14px; }
  #sidecart .cart__view { margin-bottom: 12px; }
}
@media (max-width: 700px), (hover: none) {
  .productCard--available .productCard__actions { grid-template-areas: "content" "add"; }
  .productCard--available .productCard__actions > .productCard__content { grid-area: content; }
  .productCard--available .productCard__actions > .productCard__addContainer { grid-area: add; opacity: 1; pointer-events: auto; }
  .collection__grid .productCard--available:is(:hover, :focus, :focus-within) > .productCard__actions > .productCard__content { opacity: 1; pointer-events: auto; }
  .productCard--available .productCard__addContainer:has(.productCard__option) { grid-template-areas: "options" "btn"; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .productCard--available .productCard__addContainer .productCard__add { min-height: 44px; width: 100%; }
  .productCard--available .productCard__optionSelect { width: 100%; min-height: 44px; }
}
#alert:empty { display: none; }
#alert { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 10010; padding: 12px 22px; background: #fff; color: #171717; border: 1px solid #ccc; max-width: min(90vw, 700px); }
#alert.v1-error, .v1-form-error { color: #b51e21; }
.v1-search-page { padding: 40px 24px; }
.footer-currency { display: flex; gap: 10px; align-items: center; }
.footer-currency select { border: 0; background: transparent; color: inherit; font: inherit; padding: 8px; }
.v1-search-page h1 { margin-bottom: 32px; }
.v1-search-page .collection__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.v1-select, .v1-product-form select, .v1-product-form input:not([type=radio]):not([type=checkbox]):not([type=hidden]), .v1-product-form textarea { color: #171717; border: 1px solid var(--product-border, #bbb); padding: 12px; background: #fff; max-width: 100%; font: inherit; }
.v1-product-form {
  --product-border: var(--color-border, #d9d9d9);
  margin: 24px 0;
}
.v1-product-form .mb-3 { margin-bottom: 20px; }
.v1-product-form .mb-3,
.v1-product-form label[for="v1-quantity"] {
  border-top: 1px solid var(--product-border);
  padding-top: 16px;
}
.v1-product-form label[for="v1-quantity"] {
  display: block;
}
.v1-product-form .form-label { display: block; margin-bottom: 10px; text-transform: uppercase; font-size: 13px; }
.v1-product-form .form-check { display: inline-flex; align-items: center; position: relative; margin: 0 8px 8px 0; }
.v1-product-form .form-check input { position: absolute; opacity: 0; }
.v1-product-form .form-check label { display: block; border: 1px solid var(--product-border); min-width: 44px; padding: 10px 14px; cursor: pointer; text-align: center; border-radius: 3px; }
.v1-product-form .form-check input:checked + label { color: #fff; background: #1a1a1a; border-color: #1a1a1a; }
.v1-product-form .form-check input:focus-visible + label { outline: 2px solid #1a1a1a; outline-offset: 3px; }
.v1-product-form .invalid-feedback { color: #b51e21; }
.v1-product-form .v1-quantity { display: block; width: 90px; margin-top: 8px; }
.v1-collection-filters .collectionFilters__inner { display: flex; gap: 18px; align-items: center; }
.v1-native-page #content { padding-top: 32px; padding-bottom: 48px; }
.v1-native-page .btn-primary, .v1-native-page .btn-primary:hover { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.v1-native-page .breadcrumb { margin: 18px 0; font-size: 12px; }
.v1-native-page .form-control, .v1-native-page .form-select { min-height: 46px; border-radius: 3px; font-family: inherit; }
.v1-native-page .modal:not(dialog) { --bs-modal-bg: #fff; color: #1a1a1a; z-index: 1055; }
.v1-native-page .modal:not(dialog) .modal-content { background: #fff; padding: 12px; }
.v1-native-page .modal:not(dialog) .modal-title { font: inherit; }
.v1-native-page .modal:not(dialog) .modal-header { border-bottom: 1px solid #ddd; }
.v1-native-page .modal:not(dialog) .modal-body { padding: 20px; }
.v1-native-page .container { width: min(1400px,100%); max-width: 1400px; padding-left: 24px; padding-right: 24px; }
.v1-native-page .header__wrapper .modal[open] { display: block; }
.v1-native-page .header__wrapper .modal { --bs-modal-width: auto; }
.v1-native-page .header__wrapper svg { vertical-align: initial; }
.v1-native-page .v1-checkout .row { --bs-gutter-x: 40px; }
.v1-native-page .v1-checkout #checkout-confirm { padding: 24px; background: #f5f5f5; }
.v1-native-page .v1-checkout #checkout-confirm .table { --bs-table-bg: transparent; }
.collection-pagination ul { display: flex; gap: 8px; list-style: none; padding: 0; }
.collection-pagination .page-link { display: flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; border: 1px solid #ddd; color: #1a1a1a; padding: 0 12px; }
.collection-pagination .active .page-link, .collection-pagination a:hover { background: #1a1a1a; color: #fff; }
.collection-pagination .disabled { opacity: .35; }
@media(max-width:768px) {
  .v1-search-page .collection__grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .v1-collection-filters .collectionFilters__inner { flex-wrap: wrap; }
  .v1-native-page .container { padding-left: 16px; padding-right: 16px; }
  .v1-native-page .v1-checkout .row { --bs-gutter-x: 24px; }
}
