/* Wrap-Master: readable shop controls and brand-coloured product names */
.hikashop_product_name, .hikashop_product_name a,
.hikashop_product_name_main, .hikashop_product_name_main a,
.hikashop_cart_product_name, .hikashop_cart_product_name a {
  color: #f4fd00 !important;
}
:is([id^="hikashop_"], [class*="hikashop"]) :is(input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]), select, textarea),
input.hikashop_product_quantity_field {
  background-color: #333 !important;
  color: #fff !important;
  border: 1px solid #888 !important;
  border-radius: 4px;
  min-height: 42px;
  padding: 8px 12px;
  opacity: 1;
  text-transform: none !important;
  text-align: left !important;
  font-weight: 400;
  -webkit-text-fill-color: #fff;
}
:is([id^="hikashop_"], [class*="hikashop"]) :is(input, textarea)::placeholder {
  color: #ccc !important;
  opacity: 1;
}
:is([id^="hikashop_"], [class*="hikashop"]) select option {
  background: #333;
  color: #fff;
}
:is([id^="hikashop_"], [class*="hikashop"]) :is(input, select, textarea):focus-visible {
  outline: 2px solid #f4fd00 !important;
  outline-offset: 2px;
}
:is([id^="hikashop_"], [class*="hikashop"]) :is(input[type="radio"], input[type="checkbox"]) {
  accent-color: #f4fd00;
}
.hikashop_checkout_status .label,
.hikashop_checkout_status .badge {
  display: inline-block;
  background: #f4fd00 !important;
  color: #171717 !important;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.hikashop_checkout_page :is(label, legend, th),
.hikashop_checkout_page :is(.hikashop_checkout_shipping, .hikashop_checkout_payment, .hikashop_checkout_address) {
  color: #fff;
}
.hikashop_checkout_page .alert {
  background: #333;
  color: #fff;
  border: 1px solid #888;
}

.hikashop_product_quantity_field_change {
  background: #f4fd00 !important;
  color: #171717 !important;
  font-size: 24px !important;
  font-weight: 600;
  min-width: 44px;
  min-height: 44px;
}
input.hikashop_product_quantity_field {
  text-align: center !important;
}

/* Shared dark fields for the complete shop, including Joomla customer login. */
body.site.outline-15:is(.com_hikashop, .com_users) .platform-content :is(input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]), select, textarea) {
  background: #333 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 1px solid #888 !important;
  border-radius: 4px;
  min-height: 42px;
  padding: 8px 12px;
  text-transform: none !important;
  text-align: left;
  color-scheme: dark;
}
body.site.outline-15:is(.com_hikashop, .com_users) .platform-content :is(input, textarea)::placeholder {
  color: #ccc !important;
  opacity: 1;
}
body.site.outline-15:is(.com_hikashop, .com_users) .platform-content select option {
  background: #333 !important;
  color: #fff !important;
}
body.site.outline-15:is(.com_hikashop, .com_users) .platform-content :is(input, select, textarea):focus-visible {
  outline: 2px solid #f4fd00 !important;
  outline-offset: 2px;
}
body.site.outline-15:is(.com_hikashop, .com_users) .platform-content :is(input[type="checkbox"], input[type="radio"]) {
  color-scheme: dark;
  accent-color: #f4fd00;
  background-color: #333;
  border-color: #888;
}
body.site.outline-15:is(.com_hikashop, .com_users) .platform-content .form-check-input:checked {
  background-color: #f4fd00;
  border-color: #f4fd00;
}
body.site.outline-15:is(.com_hikashop, .com_users) .platform-content :is(.input-group-text, .input-password-toggle, .chosen-single, .chosen-drop, .chosen-search input, .select2-selection, .select2-dropdown, .well, .card, .table-striped > tbody > tr:nth-of-type(odd) > *) {
  background-color: #333 !important;
  color: #fff !important;
  border-color: #888 !important;
}
body.site.outline-15:is(.com_hikashop, .com_users) .platform-content :is(label, legend, .control-label, .chosen-results li, .select2-results__option) {
  color: #fff;
}
body.site.outline-15:is(.com_hikashop, .com_users) .platform-content :is(.chosen-results .highlighted, .select2-results__option--highlighted) {
  background: #f4fd00 !important;
  color: #171717 !important;
}
.hikaradios label.btn {
  background: #333;
  color: #fff;
  border: 1px solid #888;
}
.hikaradios label.btn.active {
  background: #f4fd00;
  color: #171717;
  border-color: #f4fd00;
}

/* Compact, readable customer account login. */
body.site.outline-15.com_users.view-login .com-users-login {
  max-width: 560px;
  margin: 24px auto 48px;
  padding: clamp(20px, 4vw, 36px);
  background: #292929;
  border: 1px solid #555;
  border-radius: 12px;
}
body.site.outline-15.com_users.view-login .com-users-login__form.well {
  background: transparent !important;
  padding: 0;
  margin: 0;
  border: 0;
}
body.site.outline-15.com_users.view-login .com-users-login :is(fieldset, .control-group, .controls, .control-label) {
  padding: 0;
  margin-left: 0;
  width: auto;
  float: none;
}
body.site.outline-15.com_users.view-login .com-users-login .control-group { margin: 0 0 20px; }
body.site.outline-15.com_users.view-login .com-users-login .control-label { margin: 0 0 8px; }
body.site.outline-15.com_users.view-login .com-users-login label {
  font-size: 16px;
  text-transform: none;
  font-weight: 500;
  color: #fff;
}
body.site.outline-15.com_users.view-login .com-users-login .input-group { display: flex; flex-wrap: nowrap; }
body.site.outline-15.com_users.view-login .com-users-login :is(input[type="text"], input[type="password"]) {
  width: 100%;
  min-width: 0;
  height: 46px;
  border-radius: 6px;
}
body.site.outline-15.com_users.view-login .com-users-login .input-password-toggle {
  flex: 0 0 46px;
  min-height: 46px;
  margin: 0;
  padding: 8px;
  border-radius: 0 6px 6px 0;
  background: #444 !important;
  color: #fff !important;
}
body.site.outline-15.com_users.view-login .com-users-login__remember { margin-bottom: 24px; }
body.site.outline-15.com_users.view-login .com-users-login :is(.btn-primary, .plg_system_webauthn_login_button) {
  width: 100%;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 16px;
  text-transform: none;
  font-weight: 600;
}
body.site.outline-15.com_users.view-login .com-users-login .btn-primary {
  background: #f4fd00 !important;
  color: #171717 !important;
  border: 1px solid #f4fd00;
}
body.site.outline-15.com_users.view-login .plg_system_webauthn_login_button {
  background: #333 !important;
  color: #fff !important;
  border: 1px solid #888;
}
body.site.outline-15.com_users.view-login .plg_system_webauthn_login_button svg { fill: currentColor; }
body.site.outline-15.com_users.view-login .com-users-login__options { display: grid; gap: 12px; margin-top: 24px; }
body.site.outline-15.com_users.view-login .com-users-login__options a {
  color: #f4fd00;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 15px;
  text-transform: none;
  overflow-wrap: anywhere;
}
body.site.outline-15.com_users.view-login .com-users-login__options a:hover { text-decoration: underline; }

/* Customer dashboard and account subpages. */
#hikashop_dashboard {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 28px;
  max-width: 1180px;
  margin: 24px auto 48px;
}
#hikashop_dashboard :is(.hika_cpanel_side_bar, .hika_cpanel_main_data) { width: auto; padding: 0; min-width: 0; }
#hikashop_dashboard .hika_cpanel_icons { display: grid; gap: 12px; }
#hikashop_dashboard .hika_cpanel_icons > div { padding: 0; }
#hikashop_dashboard .hika_cpanel_icon {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 14px 18px;
  background: #333 !important;
  color: #fff !important;
  border: 1px solid #666;
  border-left: 4px solid #f4fd00;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
#hikashop_dashboard .hika_cpanel_icon:hover,
#hikashop_dashboard .hika_cpanel_icon:focus-visible {
  background: #f4fd00 !important;
  color: #171717 !important;
  outline: 2px solid #f4fd00;
  outline-offset: 3px;
}
#hikashop_dashboard .hikashop_cpanel_button_text { color: inherit !important; }
#hikashop_dashboard .hk-well {
  background: #292929;
  color: #fff;
  border: 1px solid #555;
  border-radius: 10px;
  padding: 24px;
  margin: 0 0 24px;
}
#hikashop_dashboard .hika_cpanel_main_data_title {
  color: #f4fd00;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
  text-transform: none;
  margin: 24px 0 16px;
}
#hikashop_dashboard .hika_no_orders p { margin: 0; font-size: 16px; line-height: 1.6; }
.hikashop_billing_addresses, .hikashop_shipping_addresses {
  background: #292929;
  border: 1px solid #555;
  border-radius: 10px;
  padding: 24px;
  margin-top: 20px;
}
:is(.hikashop_billing_addresses, .hikashop_shipping_addresses) h3 { color: #f4fd00; text-transform: none; font-size: 24px; }
#hikashop_order_listing { max-width: 1180px; margin: 24px auto 48px; padding: 24px; background: #292929; border: 1px solid #555; border-radius: 10px; }
#hikashop_order_listing :is(input, select) { max-width: 100%; }
@media (max-width: 700px) {
  #hikashop_dashboard { grid-template-columns: 1fr; gap: 20px; }
  #hikashop_dashboard .hika_cpanel_icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #hikashop_dashboard .hika_cpanel_icon { font-size: 15px; padding: 12px; }
  #hikashop_order_listing { padding: 16px; overflow-x: auto; }
}

#hikashop_dashboard::before, #hikashop_dashboard::after { display: none !important; content: none !important; }
#hikashop_dashboard .hika_cpanel_side_bar { grid-column: 1; grid-row: 1; width: auto !important; margin: 0 !important; float: none !important; }
#hikashop_dashboard .hika_cpanel_main_data { grid-column: 2; grid-row: 1; width: auto !important; margin: 0 !important; float: none !important; }
#hikashop_dashboard .hika_cpanel_icon { border: 1px solid #666 !important; border-left: 4px solid #f4fd00 !important; }
@media (max-width: 700px) {
  #hikashop_dashboard .hika_cpanel_side_bar { grid-column: 1; grid-row: 1; }
  #hikashop_dashboard .hika_cpanel_main_data { grid-column: 1; grid-row: 2; }
}

#hikashop_dashboard .hk-well, #hikashop_dashboard .hk-well p { text-align: left !important; text-transform: none; }

/* Populated order cards in the customer dashboard. */
#hikashop_dashboard .hk-card-order {
  background: #292929 !important;
  color: #fff !important;
  border: 1px solid #555 !important;
  border-radius: 10px;
  margin-bottom: 24px;
  overflow: hidden;
}
#hikashop_dashboard .hk-card-order :is(.hk-card-header, .hk-card-body, .hk-list-group-item, .hika_cpanel_methods) {
  background: #292929 !important;
  color: #fff !important;
  border-color: #555 !important;
}
#hikashop_dashboard .hk-card-order .hk-card-header { background: #333 !important; padding: 20px; }
#hikashop_dashboard .hk-card-order .hk-card-body { padding: 20px; }
#hikashop_dashboard .hk-card-order :is(.hika_cpanel_date, .hika_cpanel_price, .hika_cpanel_title, .hika_cpanel_value, .hika_cpanel_product_price, .hika_cpanel_product_price span, .hika_cpanel_order_methods, .hika_cpanel_order_methods dt, .hika_cpanel_order_methods dd, .hk-card-header a, .hk-card-header i) { color: #fff !important; }
#hikashop_dashboard .hk-card-order .hika_cpanel_product_name { color: #f4fd00 !important; }
#hikashop_dashboard .hk-card-order .order-label {
  background: #f4fd00 !important;
  color: #171717 !important;
  padding: 6px 10px;
  border-radius: 5px;
  font-weight: 600;
}
#hikashop_dashboard .hk-card-order :is(button, .hikabtn) { color: #171717 !important; }
#hikashop_dashboard .hk-card-order .hk-list-group-item { padding: 16px 20px; }

/* Wrap-Master: remove yellow backing behind account navigation */
#hikashop_dashboard .hika_cpanel_icons > .col-12 { background: transparent !important; }

/* Wrap-Master: shared product names, horizontal quantity controls, notifications. */
:is(.hikashop_product_name, .hikashop_product_name_main, .hikashop_cart_product_name, .hika_cpanel_product_name),
:is(.hikashop_product_name, .hikashop_product_name_main, .hikashop_cart_product_name, .hika_cpanel_product_name) a,
.hikashop_product_right_part > h4 { color: #f4fe00 !important; }
.hikashop_product_quantity_input_div_default_main { display: grid; grid-template-columns: 44px 76px 44px; gap: 8px; align-items: center; width: max-content; max-width: 100%; margin: 12px 0 20px; }
.hikashop_product_quantity_input_div_default_main > .hikashop_product_quantity_input_div_default { grid-column: 2; grid-row: 1; margin: 0 !important; padding: 0 !important; float: none !important; width: 76px !important; }
.hikashop_product_quantity_change_div_default { display: contents !important; }
.hikashop_product_quantity_change_div_plus_default { grid-column: 3; grid-row: 1; }
.hikashop_product_quantity_change_div_minus_default { grid-column: 1; grid-row: 1; }
:is(.hikashop_product_quantity_change_div_plus_default, .hikashop_product_quantity_change_div_minus_default) { margin: 0 !important; padding: 0 !important; float: none !important; }
.hikashop_product_quantity_field_change { display: flex !important; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0 !important; margin: 0 !important; border: 1px solid #f4fe00 !important; border-radius: 6px !important; background: #f4fe00 !important; color: #171717 !important; font-size: 24px !important; line-height: 1 !important; text-decoration: none; }
.hikashop_product_quantity_input_div_default_main input.hikashop_product_quantity_field { width: 76px !important; height: 44px; margin: 0 !important; box-sizing: border-box; text-align: center !important; }
.hikashop_product_quantity_field_change:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
body.site .notifyjs-corner { position: fixed !important; top: 12px !important; right: 16px !important; left: auto !important; z-index: 100000 !important; max-width: min(520px, calc(100vw - 32px)); }
body.site .notifyjs-metro-base { display: flex !important; align-items: center; gap: 14px; width: auto !important; max-width: 100%; min-height: 78px; padding: 16px 20px !important; background: #292929 !important; color: #fff !important; border: 1px solid #666 !important; border-left: 4px solid #f4fe00 !important; border-radius: 8px !important; box-shadow: 0 8px 28px #0008; white-space: normal !important; }
body.site .notifyjs-metro-base .image { float: none !important; flex: 0 0 50px; width: 50px !important; height: auto !important; margin: 0 !important; }
body.site .notifyjs-metro-base .image img { max-width: 50px; max-height: 60px; }
body.site .notifyjs-metro-base .text-wrapper { float: none !important; margin: 0 !important; padding: 0 !important; min-width: 0; width: auto !important; }
body.site .notifyjs-metro-base .title { color: #f4fe00 !important; font-size: 17px !important; line-height: 1.4; text-transform: none; }
body.site .notifyjs-metro-base .text { color: #fff !important; font-size: 15px !important; line-height: 1.5; white-space: normal !important; text-transform: none; }
body.site #system-message-container:has(> *) { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 24px); overflow-y: auto; z-index: 100001; }
body.site #system-message-container :is(.alert, joomla-alert) { display: block; position: relative; margin: 0 0 10px; padding: 18px 44px 18px 20px; background: #292929 !important; color: #fff !important; border: 1px solid #666 !important; border-left: 4px solid #f4fe00 !important; border-radius: 8px; box-shadow: 0 8px 28px #0008; text-align: left; text-transform: none; }
body.site #system-message-container :is(.alert-heading, h4, .alert-message) { color: inherit !important; text-transform: none; }
body.site #system-message-container :is(.alert-heading, h4) { color: #f4fe00 !important; }
body.site #system-message-container :is(.close, .btn-close, .joomla-alert--close) { position: absolute; top: 10px; right: 10px; color: #fff !important; background-color: transparent !important; opacity: 1; }
body.site #system-message-container :is(.alert-danger, .alert-error, joomla-alert[type="danger"], joomla-alert[type="error"]) { border-left-color: #ff7373 !important; }
body.site #system-message-container :is(.alert-warning, joomla-alert[type="warning"]) { border-left-color: #ffcc66 !important; }
