/* Reacware account and saved-product controls. Native OpenCart wishlist storage. */
html body.rw-modern:not(#rwp):not(#u) .alert.alert-success {
  position: relative;
  display: block;
  padding: 17px 56px 17px 48px;
  margin: 0 0 24px;
  min-height: 60px;
  background: #f7f9fb !important;
  color: #14283f !important;
  border: 1px solid #d4dee7;
  border-left: 3px solid #244f78;
  border-radius: 8px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  text-shadow: none;
  overflow-wrap: anywhere;
}
html body.rw-modern:not(#rwp):not(#u) .alert.alert-success > .fa {
  position: absolute;
  left: 18px;
  top: 21px;
  color: #397164;
  font-size: 16px;
}
html body.rw-modern:not(#rwp):not(#u) .alert.alert-success a { color: #244f78; text-decoration: underline; }
html body.rw-modern:not(#rwp):not(#u) .alert.alert-success .close {
  position: absolute;
  top: 7px;
  right: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #4e6072;
  opacity: 1;
  font-size: 24px;
  line-height: 44px;
  text-shadow: none;
  transform: none;
}
html body.rw-modern:not(#rwp):not(#u) #account-account .account-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 30px;
  padding: 0;
}
html body.rw-modern:not(#rwp):not(#u) #account-account .account-list > li {
  display: block;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  float: none;
}
html body.rw-modern:not(#rwp):not(#u) #account-account .account-list > li > a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  height: 100%;
  min-height: 88px;
  padding: 18px 20px;
  background: #fff;
  color: #14283f;
  border: 1px solid #d4dee7;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
  overflow-wrap: anywhere;
  transition: border-color .15s, background-color .15s;
}
html body.rw-modern:not(#rwp):not(#u) #account-account .account-list > li > a::before {
  flex: 0 0 30px;
  width: 30px;
  height: auto;
  margin: 0;
  color: #244f78;
  font-size: 27px;
  line-height: 1;
  text-align: center;
}
html body.rw-modern:not(#rwp):not(#u) #account-account .account-list > li > a:hover {
  border-color: #8097ad;
  background: #f7f9fb;
}
html body.rw-modern:not(#rwp):not(#u) :is(#account-account, #account-wishlist) .side-column {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #d4dee7;
  border-radius: 8px;
}
html body.rw-modern:not(#rwp):not(#u) #product-product .rw-product-wishlist {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  width: 100%;
  padding-top: 12px;
}
html body.rw-modern:not(#rwp):not(#u) #product-product .rw-wishlist-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #a7b8c8;
  border-radius: 6px;
  background: #fff;
  color: #14283f;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  text-transform: none;
  cursor: pointer;
}
html body.rw-modern:not(#rwp):not(#u) #product-product .rw-wishlist-add svg { flex: 0 0 20px; }
html body.rw-modern:not(#rwp):not(#u) #product-product .rw-wishlist-add:hover { background: #f2f5f8; border-color: #244f78; }
html body.rw-modern:not(#rwp):not(#u) #product-product .rw-wishlist-view {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: #244f78;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html body.rw-modern:not(#rwp):not(#u) :is(.rw-wishlist-add,.rw-wishlist-view,.account-list a,.alert-success .close):focus-visible {
  outline: 2px solid #315b87;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  html body.rw-modern:not(#rwp):not(#u) #account-account .account-list { grid-template-columns: minmax(0,1fr); gap: 10px; }
  html body.rw-modern:not(#rwp):not(#u) #account-account .account-list > li > a { min-height: 72px; padding: 15px 18px; }
  html body.rw-modern:not(#rwp):not(#u) #product-product .rw-product-wishlist { gap: 4px 14px; }
}

/* Keep sign-out discoverable above the account cards on every screen size. */
html body.rw-modern:not(#rwp):not(#u) #account-account .rw-account-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 18px;
}
html body.rw-modern:not(#rwp):not(#u) #account-account .rw-account-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #a7b8c8;
  border-radius: 6px;
  background: #fff;
  color: #14283f;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}
html body.rw-modern:not(#rwp):not(#u) #account-account .rw-account-logout:hover {
  background: #f2f5f8;
  border-color: #244f78;
}
html body.rw-modern:not(#rwp):not(#u) #account-account .rw-account-logout:focus-visible {
  outline: 2px solid #315b87;
  outline-offset: 3px;
}
