/* Shared controls and surfaces for Manal Store. */
:root {
  --ui-text: #2c2c2c;
  --ui-muted: #8b8b8b;
  --ui-border: #e5e5e5;
  --ui-subtle: #f6f6f6;
  --ui-primary: #2d2d2d;
  --ui-primary-hover: #454545;
  --ui-radius: 8px;
  --ui-focus: 0 0 0 3px rgba(105,105,105,.13);
}
body, .store-page, .admin-page { color: var(--ui-text); }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
.store-page .button, .admin-page .button {
  min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--ui-radius);
  gap: 9px; font-size: 13px; line-height: 1.5; font-weight: 600; letter-spacing: 0;
  box-shadow: none; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.store-page .button-dark, .admin-page .button-dark, .store-page .button-gold {
  background: var(--ui-primary); border-color: var(--ui-primary); color: #fff;
}
.store-page .button-dark:hover:not(:disabled), .admin-page .button-dark:hover:not(:disabled), .store-page .button-gold:hover:not(:disabled) {
  background: var(--ui-primary-hover); border-color: var(--ui-primary-hover); color: #fff;
}
.store-page .button-outline, .admin-page .button-outline {
  border-color: #e0e0e0; background: #fff; color: #636363;
}
.store-page .button-outline:hover:not(:disabled), .admin-page .button-outline:hover:not(:disabled) {
  background: #f8f8f8; color: #3a3a3a; border-color: #c5c5c5;
}
button:disabled, .button:disabled { opacity: .5; cursor: not-allowed; }
.button[data-busy=true] { cursor: progress; opacity: .85; }
.button[data-busy=true]::before { content: ''; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: manal-spin .7s linear infinite; }
@keyframes manal-spin { to { transform: rotate(360deg); } }
.store-page .button svg, .admin-page .button svg { width: 17px; height: 17px; flex: none; }
.store-page .icon-button, .admin-page .icon-button, .notification-bell {
  border-radius: var(--ui-radius); color: #646464; transition: background .15s, border-color .15s, color .15s;
}
.store-page .icon-button:hover:not(:disabled), .admin-page .icon-button:hover:not(:disabled), .notification-bell:hover { background: #f2f2f2; color: #3a3a3a; }
.store-page .modal-close, .admin-page .modal-close, .close-button {
  width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #e8e8e8; border-radius: 8px;
  background: #fff; color: #808080; font-size: 24px; font-weight: 400; padding: 0; line-height: 1;
}
.store-page .modal-close:hover, .admin-page .modal-close:hover, .close-button:hover { background: #f6f6f6; border-color: #d0d0d0; color: #484848; }
.store-page .field input:not([type=checkbox]):not([type=radio]), .store-page .field select, .store-page .field textarea,
.admin-page .field input:not([type=checkbox]):not([type=radio]), .admin-page .field select, .admin-page .field textarea,
.admin-page .admin-toolbar input, .admin-page .admin-toolbar select {
  min-height: 46px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); padding: 10px 12px;
  background: #fff; color: #515151; font-size: 13px; line-height: 1.6; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #a7a7a7; opacity: 1; }
.store-page .field label, .admin-page .field label { color: #636363; font-weight: 500; font-size: 12px; margin-bottom: 2px; }
.store-page .field small, .admin-page .field small { font-size: 11px; color: #999999; line-height: 1.8; }
.store-page input:focus, .store-page textarea:focus, .store-page select:focus,
.admin-page input:focus, .admin-page textarea:focus, .admin-page select:focus { border-color: #acacac; box-shadow: var(--ui-focus); outline: none; }
.store-page button:focus-visible, .admin-page button:focus-visible, .store-page a:focus-visible, .admin-page a:focus-visible { outline: 2px solid #a2a2a2; outline-offset: 3px; }
.store-page .search-row { border-radius: 9px; border-color: var(--ui-border); background: #f8f8f8; }
.store-page .search-row input { color: #616161; font-size: 14px; background: transparent; box-shadow: none; }
.store-page .search-row .text-button { padding: 8px 12px; min-height: 38px; font-size: 11px; font-weight: 500; color: #949494; border-radius: 6px; }
.store-page .search-row .text-button:hover { color: #545454; background: #f1f1f1; }
.store-page .hero-content { min-height: 420px; border-radius: 12px; }
.store-page .hero-visual { min-height: 420px; }
.store-page .hero-copy { padding: 44px; }
.store-page .hero h1 { font-size: clamp(32px,3.3vw,46px); line-height: 1.6; font-weight: 600; }
.store-page .hero-copy p { font-size: 14px; line-height: 1.9; }
.store-page .hero .button { min-height: 44px; padding: 10px 19px; }
.store-page .product-image, .store-page .promo-card { border-radius: 10px; background: #f3f3f3; }
.store-page .product-quick { border-radius: 7px; font-weight: 500; font-size: 12px; transform: none; min-height: 40px; background: #fff; color: #505050; border: 1px solid #e5e5e5; box-shadow: 0 3px 12px rgba(0,0,0,.04); }
.store-page .product-info { padding-top: 12px; }
.store-page .product-info h3 { font-size: 15px; line-height: 1.7; font-weight: 500; }
.store-page .product-info .price { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.store-page .product-info .category { color: #9b9b9b; font-size: 11px; }
.store-page .category-choice { padding-bottom: 2px; }
.store-page .category-thumb { background: #f3f3f3; }
.store-page .category-choice.active .category-thumb { border-color: #7f7f7f; }
.overlay { background: rgba(25,25,25,.38); }
.store-page .modal, .admin-page .modal { border: 1px solid #e6e6e6; border-radius: 14px; box-shadow: 0 24px 65px rgba(25,25,25,.17); }
.modal:focus { outline: none; }
.store-page .modal-pad { padding: 32px; }
.store-page .modal-pad h2 { font-size: 24px; font-weight: 600; line-height: 1.7; margin-bottom: 8px; }
.store-page .modal-pad > p { font-size: 12px; color: #999999; line-height: 1.9; margin-bottom: 22px; }
.store-page .auth-tabs { padding: 4px; gap: 4px; border: 1px solid #eaeaea; border-radius: 9px; background: #f7f7f7; margin: 20px 0; }
.store-page .auth-tabs button { min-height: 40px; font-size: 12px; font-weight: 500; border: 0; border-radius: 6px; color: #9e9e9e; }
.store-page .auth-tabs button.active { background: #fff; color: #585858; box-shadow: 0 1px 4px #36363610; }
.store-page .size-group { gap: 9px; margin-top: 13px; }
.store-page .size-group button { width: 48px; height: 44px; border-color: #e6e6e6; border-radius: 7px; font-size: 13px; }
.store-page .size-group button:hover:not(:disabled):not(.active) { background: #f8f8f8; border-color: #b6b6b6; }
.store-page .size-group button.active { background: #3a3a3a; border-color: #3a3a3a; color: #fff; }
.store-page .size-group button:disabled { background: #f7f7f7; color: #c5c5c5; border-color: #f0f0f0; }
.store-page .product-detail-content { padding: 55px 36px 30px; }
.store-page .product-detail h2 { font-size: 26px; font-weight: 600; line-height: 1.65; }
.store-page .product-detail .big-price { font-size: 24px; margin: 21px 0; }
.store-page .product-detail > img { height: 580px; }
.store-page .stock-hint, .store-page .detail-note { color: #9a9a9a; font-size: 11px; }
.store-page .drawer {
  top: 16px; bottom: 16px; right: 16px; left: auto; width: min(440px,calc(100% - 32px)); border-radius: 14px;
  border: 1px solid #e7e7e7; box-shadow: 0 20px 60px #23232324; transform: translateX(calc(100% + 32px)); overflow: hidden;
}
.store-page .drawer:not(.open) { visibility: hidden; }
.store-page .drawer.open { transform: none; visibility: visible; }
.store-page .drawer-head { padding: 23px 23px 19px; align-items: center; border-bottom-color: #f0f0f0; }
.store-page .drawer-head h2 { font-size: 21px; font-weight: 600; line-height: 1.7; }
.store-page .drawer-head .eyebrow { color: #a3a3a3; font-size: 9px; }
.cart-item-count { font-size: 11px; color: #a5a5a5; margin: 5px 0 0; }
.store-page .drawer-body { padding: 10px 23px; background: #fff; }
.store-page .cart-line { grid-template-columns: 75px minmax(0,1fr); align-items: start; gap: 15px; padding: 21px 0; border-bottom-color: #f0f0f0; }
.store-page .cart-line > img { width: 75px; height: 106px; border-radius: 8px; }
.cart-line-content { min-width: 0; }
.cart-item-heading { display: flex; justify-content: space-between; gap: 7px; align-items: start; }
.store-page .cart-line h3 { font-size: 13px; font-weight: 600; line-height: 1.8; margin: 0; }
.cart-remove-button { display: grid; place-items: center; width: 29px; height: 29px; border: 0; background: transparent; border-radius: 6px; color: #b0b0b0; flex: none; }
.cart-remove-button svg { width: 16px; height: 16px; }
.cart-remove-button:hover { color: #b07773; background: #fbf4f3; }
.cart-item-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.cart-item-meta > span { color: #919191; background: #f4f4f4; padding: 2px 6px; border-radius: 4px; font-size: 10px; }
.store-page .cart-item-meta small { font-size: 10px; color: #a9a9a9; }
.cart-item-bottom { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.store-page .cart-line .qty-control { margin-top: 0; }
.store-page .qty-control { height: 35px; border-radius: 7px; border-color: #e8e8e8; overflow: hidden; background: #fff; }
.store-page .qty-control button { display: grid; place-items: center; width: 32px; height: 33px; color: #8b8b8b; font-size: 17px; font-weight: 400; }
.store-page .qty-control button:hover:not(:disabled) { background: #f6f6f6; color: #4c4c4c; }
.store-page .qty-control span { min-width: 26px; color: #727272; font-size: 11px; font-variant-numeric: tabular-nums; }
.store-page .cart-item-bottom strong { color: #5c5c5c; font-size: 13px; font-weight: 600; }
.cart-stock-warning { font-size: 10px; line-height: 1.7; color: #a16f69; margin: 9px 0 0; }
.store-page .drawer-foot { padding: 21px 23px 23px; border-top-color: #ececec; background: #fcfcfc; }
.store-page .total-line { font-weight: 500; font-size: 13px; color: #747474; align-items: center; }
.store-page .total-line strong { font-size: 19px; color: #454545; font-weight: 600; }
.store-page .drawer-foot small { font-size: 10px; color: #a5a5a5; margin: 8px 0 18px; line-height: 1.8; }
.store-page .drawer-foot .button { min-height: 48px; font-size: 13px; }
.store-page .cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; padding: 75px 20px; text-align: center; }
.store-page .cart-empty > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; background: #f4f4f4; color: #a6a6a6; margin-bottom: 18px; }
.store-page .cart-empty svg { width: 28px; height: 28px; }
.store-page .cart-empty h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.store-page .cart-empty p { font-size: 12px; color: #a5a5a5; line-height: 1.9; margin-bottom: 20px; }
.store-page .order-summary { background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 10px; padding: 20px; }
.store-page .order-summary h3 { font-size: 15px; color: #656565; }
.store-page .summary-row { border-bottom-color: #eaeaea; color: #8b8b8b; font-size: 12px; line-height: 1.8; padding: 11px 0; }
.store-page .summary-row strong { color: #6c6c6c; font-size: 12px; font-weight: 500; }
.store-page .summary-row.total { font-size: 13px; color: #4e4e4e; }
.store-page .summary-row.total strong { font-size: 16px; color: #4e4e4e; font-weight: 600; }
.store-page .checkout-note { font-size: 10px; line-height: 1.9; color: #a2a2a2; }
.store-page .checkout-section-title { font-size: 15px; font-weight: 600; color: #696969; }
.store-page .transfer-panel { border-color: #e9e9e9; background: #fafafa; border-radius: 9px; }
.store-page .account-copy { border-radius: 7px; border-color: #e8e8e8; }
.store-page .account-copy button { min-height: 32px; padding: 5px 8px; border: 1px solid #e6e6e6; border-radius: 5px; color: #828282; background: #fff; text-decoration: none; font-size: 10px; }
.store-page .account-copy button:hover { background: #f7f7f7; }
.store-page .order-card { border-radius: 10px; border-color: #eaeaea; padding: 18px; }
.store-page .tiny-link { text-decoration: none; border-radius: 5px; padding: 6px 9px; min-height: 32px; color: #989898; font-size: 11px; }
.store-page .tiny-link:hover { background: #f6f6f6; color: #636363; }
.admin-page .panel, .admin-page .stat-card, .admin-page .management-card, .admin-page .editor-section { border-radius: 10px; }
.admin-page .table-actions button, .admin-page .catalog-card-actions button, .admin-page .payment-card-actions button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 35px; padding: 7px 11px;
  border: 1px solid #e6e6e6; border-radius: 6px; background: #fff; color: #7f7f7f; font-size: 11px; font-weight: 500; text-decoration: none;
}
.admin-page .table-actions button:hover, .admin-page .catalog-card-actions button:hover, .admin-page .payment-card-actions button:hover { background: #f8f8f8; border-color: #c5c5c5; color: #515151; text-decoration: none; }
.admin-page .table-actions button.danger, .admin-page .catalog-card-actions button.danger, .admin-page .payment-delete { background: #fff; color: #ad8580; border-color: #efe1df; }
.admin-page .table-actions button.danger:hover, .admin-page .catalog-card-actions button.danger:hover, .admin-page .payment-delete:hover { color: #9b655e; background: #fcf5f4; border-color: #debcb7; }
.admin-page .catalog-card-actions { gap: 8px; }
.admin-page .payment-card-actions { gap: 10px; }
.admin-page .order-status-tabs button, .admin-page .notification-filters button { min-height: 39px; border-radius: 7px; padding: 8px 13px; font-size: 11px; }
.admin-page .order-status-tabs button:hover:not(.active), .admin-page .notification-filters button:hover:not(.active) { background: #f1f1f1; color: #7e7e7e; }
.admin-page .panel-head button, .admin-page .stock-show-all, .admin-page .notification-dropdown-footer { border-radius: 6px; min-height: 34px; }
.admin-page .panel-head button { padding: 6px 9px; }
.admin-page .panel-head button:hover, .admin-page .stock-show-all:hover, .admin-page .notification-dropdown-footer:hover { background: #f5f5f5; color: #737373; }
.admin-page .modal-footer-actions { gap: 10px; }
.admin-page .editor-footer .button { min-width: 115px; }
.admin-page .payment-publish-setting { cursor: pointer; }
.admin-page .orders-search input { border: 0; box-shadow: none; }
.admin-page .orders-toolbar > select, .delivery-currency-input input { min-height: 42px; border-radius: 7px; }
@media (max-width: 720px) {
  .store-page .button, .admin-page .button { min-height: 44px; font-size: 12px; padding: 10px 15px; }
  .store-page .hero-content, .store-page .hero-visual { min-height: 250px; height: 250px; }
  .store-page .hero-copy { padding: 24px; }
  .store-page .hero h1 { font-size: 28px; line-height: 1.55; }
  .store-page .hero .button { min-height: 39px; padding: 8px 13px; font-size: 11px; }
  .store-page .header-actions .icon-button { width: 40px; height: 40px; }
  .store-page .product-info h3, .store-page .product-info .price { font-size: 13px; }
  .store-page .product-quick { min-height: 38px; font-size: 10px; border-radius: 0 0 9px 9px; }
  .store-page .drawer { inset: 0; width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .store-page .drawer-head { padding: 20px; }
  .store-page .drawer-body { padding: 7px 20px; }
  .store-page .drawer-foot { padding: 19px 20px calc(20px + env(safe-area-inset-bottom)); }
  .store-page .qty-control { height: 40px; }
  .store-page .qty-control button { width: 36px; height: 38px; }
  .cart-remove-button { width: 35px; height: 35px; }
  .store-page .modal-pad { padding: 28px 21px; }
  .store-page .modal-pad h2 { font-size: 22px; }
  .store-page .product-modal, .store-page .checkout-modal { top: 0; left: 0; width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  .store-page .product-detail > img { height: 43dvh; }
  .store-page .product-detail-content { padding: 24px 22px calc(38px + env(safe-area-inset-bottom)); }
  .store-page .checkout-modal .modal-pad { padding-bottom: calc(38px + env(safe-area-inset-bottom)); }
  .store-page .product-detail .button { min-height: 48px; }
  .admin-page .table-actions button, .admin-page .catalog-card-actions button, .admin-page .payment-card-actions button { min-height: 40px; padding: 8px 11px; }
  .admin-page .modal-footer-actions > .button { flex: 1; }
  .admin-page .editor-footer .button { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .button[data-busy=true]::before { animation: none; border-right-color: currentColor; }
}

/* Accounts, customer notifications and order instructions — v13 */
[hidden] { display: none !important; }
.customer-bell { position: relative; }
.order-help { margin: 24px 0; padding: 20px; background: #f7f6f3; border: 1px solid #e7e3da; border-radius: 12px; }
.order-help h3 { margin: 0 0 14px; font-size: 17px; }
.order-help ol { margin: 0; padding-inline-start: 20px; }
.order-help li { padding: 7px 0; line-height: 1.9; font-size: 13px; }
.customer-notification-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.customer-notification-heading p { margin: 0; font-size: 13px; color: #74716b; }
.customer-notification-heading .button { font-size: 12px; padding: 7px 12px; min-height: 38px; flex-shrink: 0; }
.customer-notification-list { display: grid; gap: 8px; }
.customer-notification { width: 100%; display: flex; align-items: flex-start; text-align: start; gap: 12px; padding: 16px; background: #fff; color: #272727; border: 1px solid #e8e6e1; border-radius: 12px; }
.customer-notification:hover { border-color: #b59c65; }
.customer-notification.unread { background: #faf7ef; border-color: #e8dcc2; }
.customer-notification-symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #ede6d7; color: #7a6234; flex-shrink: 0; }
.customer-notification > span:nth-child(2) { display: grid; gap: 5px; flex: 1; min-width: 0; }
.customer-notification strong { font-size: 13px; overflow-wrap: anywhere; }
.customer-notification span span { font-size: 12px; }
.customer-notification small { color: #777; font-size: 10px; }
.customer-notification i { width: 7px; height: 7px; background: #987d42; border-radius: 50%; flex-shrink: 0; margin-top: 10px; }
.order-card:focus { outline: 2px solid #aa905b; outline-offset: 3px; }
.admin-auth-page { min-height: 100vh; display: grid; place-items: center; background: #efede8; padding: 30px 16px; }
.admin-auth-card { width: min(100%,440px); padding: 36px; background: #fff; border: 1px solid #e1ddd4; border-radius: 20px; box-shadow: 0 20px 60px #2727270c; }
.admin-auth-brand { display: block; width: 132px; margin: 0 auto 24px; }
.admin-auth-brand img { width: 100%; display: block; }
.admin-auth-card h1 { font-size: 26px; margin: 8px 0; }
.admin-auth-card > p { font-size: 13px; line-height: 1.9; color: #777; }
.admin-auth-card .field { margin: 16px 0; }
.admin-auth-card .admin-auth-note { border-top: 1px solid #eee; padding-top: 18px; font-size: 11px; }
.admin-auth-return { display: block; text-align: center; font-size: 12px; padding-top: 8px; }
@media(max-width:700px){
  .mobile-bottom-nav { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .mobile-bottom-nav button, .mobile-bottom-nav a { min-width: 0; }
  .mobile-bottom-nav .cart-count { top: 2px; right: 10px; }
  .customer-notification-heading { align-items: flex-start; }
  .admin-auth-card { padding: 26px; }
}


/* v14: refined administration and private sign-in */
.admin-auth-page { background: radial-gradient(circle at 14% 0%,#f8f4ed 0,transparent 38%),#f0f1f3; }
.admin-auth-card { border-radius: 18px; padding: 40px; border: 1px solid #e6e6e9; box-shadow: 0 24px 80px rgba(30,32,37,.09); }
.admin-login-eyebrow { display: block; text-align: center; color: #96805a; font-size: 10px; font-weight: 700; letter-spacing: .12em; margin-bottom: 10px; }
.admin-auth-card h1,.admin-auth-card > p { text-align: center; }
.admin-auth-card h1 { font-weight: 700; }
.admin-auth-card .field label { font-size: 12px; font-weight: 700; color: #50535a; }
.admin-auth-card .field input { border: 1px solid #d9dce1; min-height: 47px; width: 100%; border-radius: 9px; padding-inline: 13px; background:#fff; }
.admin-auth-card .field input:focus { border-color: #a88c61; box-shadow: 0 0 0 3px #a88c6124; outline:0; }
.admin-password-wrap { display: flex; position: relative; align-items: center; }
.admin-password-wrap input { padding-inline-end: 72px!important; }
.admin-password-wrap button { position: absolute; inset-inline-end: 8px; background: #f4f4f4; padding: 4px 10px; border: 0; border-radius: 6px; font-size: 11px; color:#53565c; }
.admin-auth-card #adminAuthSubmit { min-height: 48px; border-radius: 9px; }
.admin-auth-card .form-error:not(:empty) { background: #fff1f0; border: 1px solid #f5c3c0; border-radius: 7px; padding: 8px; }
.admin-page .nav-item { display:flex; align-items:center; gap:12px; width:100%; text-align:start; }
.admin-page .nav-item>span { align-items:center; justify-content:center; flex:0 0 21px; }
.admin-page .nav-item svg,.admin-page .sidebar-bottom svg { stroke-width:1.85; }
.admin-page .nav-item.active { background:#414044; box-shadow:inset -3px 0 #c6ab76; }
.admin-page .nav-item:focus-visible { outline:2px solid #c6ab76; outline-offset:-2px; }
.admin-page .sidebar-label { letter-spacing:0; font-weight:600; }
.admin-page .admin-topbar { border-bottom:1px solid #ebedf0; }
.admin-page .admin-top-actions { display:flex; align-items:center; gap:12px; }
.admin-page .outline-link { white-space:nowrap; }
.admin-page .admin-logout { border:1px solid #e4e5e8; }
.admin-page .admin-logout:hover { border-color:#ae9567; color:#6c542b; }
.admin-page .stat-card,.admin-page .shortcut-card { transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.admin-page .stat-card:hover,.admin-page .shortcut-card:hover { transform:translateY(-2px); border-color:#d0c1a3; box-shadow:0 8px 20px #1c22300d; }
.admin-page .stat-icon,.admin-page .shortcut-icon { color:#9b8256; background:#f8f5ee; border-radius:9px; }
.admin-page .notification-dropdown { box-shadow:0 18px 55px #1b1e2530; border:1px solid #e6e7eb; }
.admin-page .data-table th { white-space:nowrap; }
@media(max-width:720px){
  .admin-auth-card { padding:30px 22px; }
  .admin-page .admin-top-actions { gap:6px; }
  .admin-page .admin-logout { font-size:0; padding:8px; min-width:35px; justify-content:center; }
  .admin-page .admin-logout svg { width:18px; height:18px; }
}


/* Manal mobile UI: native-looking dialogs, warm gold accents and safe-area layouts. */
.manal-confirm-dialog {
  box-sizing: border-box; width: min(440px,calc(100% - 28px)); max-height: min(85dvh,680px);
  overflow: auto; border: 1px solid #e7ded1; border-radius: 17px;
  padding: 0; background: #fff; color: #23252b;
  box-shadow: 0 24px 80px rgba(13,15,20,.24);
  font-family: 'Cairo',Tahoma,sans-serif;
}
.manal-confirm-dialog::backdrop { background: rgba(17,20,26,.57); backdrop-filter: blur(3px); }
.manal-confirm-content { padding: clamp(22px,5vw,34px); text-align: right; }
.manal-confirm-eyebrow { font-size: 10px; color: #a48752; letter-spacing: .12em; font-weight: 800; }
.manal-confirm-content h2 { font-size: 22px; font-weight: 700; margin: 11px 0 9px; line-height: 1.5; }
.manal-confirm-content p { font-size: 13px; line-height: 2; color: #777; margin: 0 0 24px; }
.manal-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }
.manal-confirm-actions button { border: 1px solid #e2e2e2; min-height: 45px; border-radius: 9px; padding: 9px 18px; font: 600 13px 'Cairo',Tahoma,sans-serif; }
.manal-dialog-secondary { background: #fff; color: #555; }
.manal-dialog-secondary:hover { background: #f6f6f6; }
.manal-dialog-primary { background: #242529; color: #fff; border-color: #242529!important; }
.manal-dialog-primary:hover { background: #414044; }
.manal-dialog-danger { background: #a9413b; color: #fff; border-color: #a9413b!important; }
.manal-dialog-danger:hover { background: #8b332e; }
.manal-confirm-actions button:focus-visible { outline: 3px solid #ceb37e; outline-offset: 2px; }
.admin-page .payment-sync-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; margin: 0 0 16px; border: 1px solid #e7d9bb;
  border-radius: 10px; background: #fbf8f1; color: #665438; flex-wrap: wrap;
}
.admin-page .payment-sync-bar > div { display: grid; gap: 3px; }
.admin-page .payment-sync-bar strong,.admin-page .payment-sync-bar span { font-size: 12px; font-weight: 700; }
.admin-page .payment-sync-bar small { font-size: 11px; color: #938166; line-height: 1.8; }
.admin-page .payment-sync-bar .payment-sync-ok { color: #476b58; }
.admin-page .payment-sync-bar button { cursor: pointer; min-height: 40px; padding: 7px 13px; border: 1px solid #c7b386; border-radius: 8px; background: #fff; color: #6d5732; font: 600 12px 'Cairo',Tahoma,sans-serif; }
.admin-page .payment-sync-bar button:hover { background:#f4ead5; }
.admin-page .payment-method-card { border-color: #e7e8e9; box-shadow: 0 4px 17px rgba(22,22,24,.025); }
.admin-page .payment-method-card:hover { border-color:#d8c6a2; }
.admin-page .payment-brand-icon { background: #fcf9f2; border-color:#ebe4d7; }
.store-page .payment-option { border:1px solid #e3e4e6; border-radius: 11px; transition: border-color .17s,background .17s,box-shadow .17s; min-height:68px; }
.store-page .payment-option:has(input:checked) { background:#fffaf1; border-color:#ab8b52; box-shadow: 0 0 0 2px #c7ad8030; }
.store-page .payment-option input { accent-color:#ae8b50; }
.store-page .payment-choice-icon { width:46px; height:46px; border-radius: 9px; border-color:#eae1d0; background:#fff; }
.store-page .toast,.admin-page .toast {
  border-radius: 10px; padding: 12px 18px; background: #2b2b2d; color:#fff;
  border:1px solid #9e814f; max-width: min(430px,calc(100% - 24px));
  box-shadow:0 14px 35px #19191926; line-height:1.75; font-weight:600; z-index:120;
}
.store-page .install-header,.admin-page .outline-link { min-height: 42px; }
@media(max-width:720px){
  .admin-page .admin-content { padding: 18px 14px calc(32px + env(safe-area-inset-bottom)); }
  .admin-page .admin-intro { flex-wrap:wrap; align-items:flex-start; gap:12px; }
  .admin-page .admin-intro h2 { font-size:21px; }
  .admin-page .admin-topbar { gap:8px; padding: 9px 14px; }
  .admin-page .admin-top-actions { gap:7px; flex-wrap:wrap; }
  .admin-page .admin-date { display:none; }
  .admin-page .payment-editor-modal { width: calc(100% - 12px); max-height:calc(100dvh - 12px); }
  .admin-page .payment-editor-layout { display:grid; grid-template-columns:1fr; gap:12px; }
  .admin-page .payment-editor-pad { padding:20px 16px; }
  .admin-page .payment-method-head { padding:16px 13px; }
  .admin-page .payment-card-body { padding:0 13px 18px; }
  .admin-page .payment-card-actions { padding:12px 13px; }
  .admin-page .payment-brand-icon { width:45px; height:45px; }
  .admin-page .payment-editor-footer { position:sticky; bottom:0; background:#fff; padding:13px 0 max(10px,env(safe-area-inset-bottom)); z-index:4; }
  .admin-page .payment-editor-footer button { min-height:48px; }
  .store-page .checkout-modal { max-height:100dvh; }
  .store-page .checkout-modal .modal-pad { padding:20px 16px calc(85px + env(safe-area-inset-bottom)); }
  .store-page .payment-option { grid-template-columns:46px minmax(0,1fr) 20px; gap:10px; padding:10px 12px; }
  .store-page .mobile-bottom-nav { padding-bottom:max(4px,env(safe-area-inset-bottom)); }
  .store-page .toast,.admin-page .toast { left:12px; right:12px; bottom:calc(83px + env(safe-area-inset-bottom)); max-width:none; text-align:center; }
  .manal-confirm-dialog { width:calc(100% - 24px); }
  .manal-confirm-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .manal-confirm-actions button { padding:9px 6px; }
}
@media(min-width:721px) {.admin-page .toast { bottom:26px; }}

/* Shared catalogue migration UX, mobile-first */
.admin-page .catalog-sync-banner { row-gap: 8px; }
.admin-page .catalog-sync-banner .catalog-backup-action {
  min-height: 38px; padding: 6px 11px; background: #fff;
  color: #72572b; border: 1px solid #d7c39c; border-radius: 8px;
  font: 600 11px/1.65 'Cairo', Tahoma, sans-serif; cursor: pointer;
}
.admin-page .catalog-sync-banner .catalog-backup-action:hover { background: #fffaf0; border-color: #aa8c51; }
.admin-page .catalog-sync-banner #catalogBackupFile[hidden] { display: none!important; }
@media(max-width:720px) {
 .admin-page .catalog-sync-banner { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
 .admin-page .catalog-sync-banner .catalog-backup-action { flex: 1 1 160px; }
}

/* Shared store settings synchronization */
.settings-sync-banner {
  display: flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
  column-gap:14px; row-gap:7px; padding: 10px 32px;
  border-bottom:1px solid #e5e1d9; background:#fdfbf7;
  color:#736147; font:600 12px/1.8 'Cairo',Tahoma,sans-serif;
}
.settings-sync-banner span {font-weight:400; color:#8a7e6d}
.settings-sync-banner button {
  min-height:36px; border:1px solid #d6c8ad; border-radius:8px;
  background:#fff; color:#6b5329; cursor:pointer; padding:6px 14px;
  font:600 12px 'Cairo',Tahoma,sans-serif;
}
.settings-sync-banner small {color:#a04237}
@media(max-width:720px){.settings-sync-banner{padding:9px 15px}.settings-sync-banner button{width:100%}}

/* Cloud store first-run onboarding */
.new-store-setup[hidden]{display:none!important}
.new-store-setup{display:flex;gap:13px;align-items:center;flex-wrap:wrap;padding:15px 32px;
 background:linear-gradient(105deg,#2d2b2a,#474035);color:#fff;border-bottom:1px solid #b09a73;
 font:600 12px/1.8 'Cairo',Tahoma,sans-serif}
.new-store-setup strong{white-space:nowrap;color:#f5d7a3;font-size:13px}
.new-store-setup span{flex:1;color:#eee2cb}
.new-store-setup button{border:1px solid #f0dfc1;background:#f5e8ce;color:#403223;
 font:700 12px 'Cairo',Tahoma,sans-serif;border-radius:9px;min-height:42px;padding:8px 16px;cursor:pointer}
.new-store-setup button:hover{background:white}.new-store-setup button:disabled{opacity:.65;cursor:wait}
@media(max-width:700px){.new-store-setup{padding:14px 15px}.new-store-setup button{width:100%}}
