/*
 * Layout for the static cart's line items.
 * The plugin shipped these class names but generated the markup server-side,
 * so the rules that positioned each row never made it into the static copy.
 *
 * Products have no images -- WooCommerce only ever served a grey placeholder --
 * so a line is laid out as a card: name, spec chips, chosen options, controls.
 * Colours come from the theme's own tokens so the panel matches the dark site.
 */

.xoo-wsc-products {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 14px;
}

.xoo-wsc-product {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--fi-border-strong, rgba(255, 255, 255, .14));
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
}

/* --- name + remove ------------------------------------------------------ */

.xoo-wsc-sm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* the theme's link colour made this nearly invisible -- force it bright */
.xoo-wsc-product .xoo-wsc-sm-head .xoo-wsc-smr-link,
.xoo-wsc-product .xoo-wsc-sm-head .xoo-wsc-smr-link:visited {
  color: var(--fi-text, #f8fafc);
  font-weight: 700;
  font-size: 1.06em;
  line-height: 1.35;
  text-decoration: none;
  letter-spacing: .1px;
}

.xoo-wsc-product .xoo-wsc-sm-head .xoo-wsc-smr-link:hover {
  color: var(--fi-orange, #ff7a1a);
}

.xoo-wsc-product .xoo-wsc-smr-del {
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--fi-muted, #94a3b8);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  flex: 0 0 auto;
  transition: color .15s, background .15s, border-color .15s;
}

.xoo-wsc-product .xoo-wsc-smr-del:hover {
  color: #ff6b6b;
  background: rgba(255, 107, 107, .12);
  border-color: rgba(255, 107, 107, .35);
}

/* --- package spec chips -------------------------------------------------- */

.xoo-wsc-specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xoo-wsc-specs li {
  font-size: .76em;
  font-weight: 600;
  line-height: 1;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--fi-text, #f8fafc);
  background: rgba(59, 130, 246, .13);
  border: 1px solid rgba(59, 130, 246, .28);
  white-space: nowrap;
}

/* --- chosen OS / datacenter --------------------------------------------- */

.xoo-wsc-var {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: .84em;
  padding: 12px 0;
  border-block: 1px solid var(--fi-border, rgba(255, 255, 255, .08));
}

.xoo-wsc-var__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.xoo-wsc-var__k {
  color: var(--fi-muted, #94a3b8);
  flex: 0 0 auto;
}

.xoo-wsc-var__v {
  color: var(--fi-text, #f8fafc);
  font-weight: 600;
  text-align: start;
  overflow-wrap: anywhere;
}

/* --- quantity + line total ---------------------------------------------- */

.xoo-wsc-sm-right-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.xoo-wsc-qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--fi-border-strong, rgba(255, 255, 255, .14));
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, .22);
}

.xoo-wsc-qty-box .xoo-wsc-chng {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  line-height: 1;
  color: var(--fi-text, #f8fafc);
  transition: background .15s;
}

.xoo-wsc-qty-box .xoo-wsc-chng:hover { background: rgba(255, 255, 255, .11); }

.xoo-wsc-qty-box input.xoo-wsc-qty {
  width: 46px;
  height: 32px;
  border: 0;
  border-inline: 1px solid var(--fi-border-strong, rgba(255, 255, 255, .14));
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  padding: 0;
  background: transparent;
  color: var(--fi-text, #f8fafc);
  -moz-appearance: textfield;
}

.xoo-wsc-qty-box input.xoo-wsc-qty::-webkit-outer-spin-button,
.xoo-wsc-qty-box input.xoo-wsc-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.xoo-wsc-smr-ptotal {
  font-weight: 800;
  font-size: 1.14em;
  color: var(--fi-text, #f8fafc);
  white-space: nowrap;
}

.xoo-wsc-smr-ptotal small {
  font-weight: 500;
  color: var(--fi-muted, #94a3b8);
  font-size: .68em;
}

/* --- footer totals ------------------------------------------------------ */

.xoo-wsc-ft-totals {
  padding: 14px 16px 4px;
}

.xoo-wsc-ft-amt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

.xoo-wsc-ft-amt-label { color: var(--fi-muted, #94a3b8); }

.xoo-wsc-ft-amt-subtotal {
  font-weight: 800;
  font-size: 1.1em;
  color: var(--fi-text, #f8fafc);
}

.xoo-wsc-ft-amt-savings { color: #35d17e; font-size: .9em; }
.xoo-wsc-ft-amt-savings .xoo-wsc-ft-amt-label { color: inherit; }

.xoo-wsc-ft-buttons-cont {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px 2px;
}

/*
 * The Side-Cart plugin ships inline styles that paint both buttons plain black
 * with a white border and invert them on hover -- which reads as broken against
 * the dark theme. These selectors carry one more class than the plugin's so they
 * win without needing !important.
 */

.xoo-wsc-container .xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn,
.xoo-wsc-container .xoo-wsc-ft-buttons-cont a.xoo-wsc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .96rem;
  line-height: 1.2;
  text-decoration: none;
  transition: filter .15s, background .15s, border-color .15s, color .15s;
}

/*
 * The theme's own upgrade sheet declares these with !important (including a hover
 * colour that leaks into the resting state), so matching it is the only way to get
 * a predictable result. Kept to the handful of properties that decide readability.
 */

/* primary: white on the site's orange, at both rest and hover */
.xoo-wsc-container .xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn-checkout,
.xoo-wsc-container .xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn-checkout:visited,
.xoo-wsc-container .xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn-checkout:hover,
.xoo-wsc-container .xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn-checkout:focus {
  background: linear-gradient(135deg, #ff8c33 0%, #ff7a1a 60%, #f26a08 100%) !important;
  color: #fff !important;
  border-color: rgba(255, 188, 122, .45) !important;
  box-shadow: 0 10px 26px rgba(255, 122, 26, .3) !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}

.xoo-wsc-container .xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn-checkout:hover {
  filter: brightness(1.07);
}

/* secondary: quiet outline that never inverts to white-on-white */
.xoo-wsc-container .xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn-continue,
.xoo-wsc-container .xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn-continue:visited {
  background: rgba(255, 255, 255, .04) !important;
  color: var(--fi-muted, #94a3b8) !important;
  border-color: rgba(255, 255, 255, .16) !important;
  box-shadow: none !important;
  font-weight: 600;
}

.xoo-wsc-container .xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn-continue:hover,
.xoo-wsc-container .xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn-continue:focus {
  background: rgba(255, 255, 255, .1) !important;
  color: var(--fi-text, #f8fafc) !important;
  border-color: rgba(255, 255, 255, .26) !important;
}

.xoo-wsc-container .xoo-wsc-btn .amount,
.xoo-wsc-container .xoo-wsc-btn:hover .amount { color: inherit; }

/* --- success notice ----------------------------------------------------- */

.xoo-wsc-notices { list-style: none; margin: 0; padding: 0; }

.xoo-wsc-notices .xoo-wsc-notice-success {
  background: rgba(26, 156, 83, .92);
  color: #fff;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .88em;
  text-align: center;
}

/* --- empty state -------------------------------------------------------- */

.xoo-wsc-empty-cart {
  padding: 48px 20px;
  text-align: center;
  color: var(--fi-muted, #94a3b8);
}

.xoo-wsc-basket { cursor: pointer; }

/* --- header login link (sits beside the cart in the contact bar) -------- */

.contact-info .fi-login-item a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.contact-info .fi-login-item i { font-size: 1.05em; }

/* Israel flag for the datacenter picker. Windows has no flag glyphs, so the emoji
   rendered as the letters "IL" -- this is a real image instead. The badge is already
   round with its own edge, so it gets no border or radius of ours. */
.fi-flag {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    vertical-align: -0.25em;
    object-fit: contain;
}

/*
 * Domain field on the web-hosting cards.
 *
 * Plesk needs a domain name at the moment the subscription is created, so the choice
 * is made on the card rather than at checkout -- the same place the VPS cards ask for
 * an OS. Tokens are configurator.css's own (#05acf2 accent, #dbe7ef border, 8px radius)
 * so the field reads as part of the card and not as something bolted on.
 *
 * `[hidden]` is restated here because the theme sets `display` on several of these
 * elements, and a `display` rule in an author stylesheet beats the UA's [hidden].
 * Without this the hint and the error would both be permanently visible.
 */
.hc-domain [hidden] {
    display: none !important;
}

.hc-domain__input {
    width: 100%;
    min-height: 4.4rem;
    padding: 0.9rem 1.2rem;
    background: #f7fafc;
    border: 1px solid #dbe7ef;
    border-radius: 8px;
    color: #072b45;
    font: inherit;
    line-height: 1.2;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hc-domain__input::placeholder {
    color: #9bb0bf;
}

.hc-domain__input:focus {
    background: #e8f7fe;
    border-color: #05acf2;
    box-shadow: inset 0 0 0 1px #05acf2;
    outline: none;
}

/* Set by cart.js when the name cannot be a hostname. */
.hc-domain__input--invalid,
.hc-domain__input--invalid:focus {
    background: #fdf3f3;
    border-color: #d0454c;
    box-shadow: inset 0 0 0 1px #d0454c;
}

/* Checked = we supply the address, so the text field has nothing to say. */
.hc-domain__input:disabled {
    background: #eef3f7;
    border-style: dashed;
    color: #9bb0bf;
    cursor: not-allowed;
}

.hc-domain__toggle {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #3f505b;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1.35;
    text-align: right;
}

.hc-domain__toggle input {
    flex: 0 0 auto;
    width: 1.7rem;
    height: 1.7rem;
    accent-color: #05acf2;
    cursor: pointer;
    margin: 0;
}

.hc-domain__hint {
    margin: 0;
    color: #3f505b;
    font-size: 1.2rem;
    line-height: 1.5;
    text-align: right;
}

.hc-domain__error {
    margin: 0;
    color: #d0454c;
    font-size: 1.2rem;
    line-height: 1.5;
    text-align: right;
}
