@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

:root {
  /* Core brand colors */
  --color-primary: #213b4e;
  --color-primary-light: #3a5673; /* Hover/active */
  --color-primary-dark: #15293a; /* Pressed or depth */
  --color-primary-text: #ffffff; /* Text on primary background */

  /* Backgrounds and surfaces */
  --color-background: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-elevated: #eef2f6;
  --color-border: #d1d9e2;

  /* Text colors */
  --color-text-primary: #1e293b;
  --color-text-secondary: #64748b;

  /* Status colors */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #17a2b8;
  --color-blue: #007bff;

  /* Fonts */
  --font: "Inter", sans-serif;
}

.spaImageFieldOptions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.spaOptionImage {
  width: 60px !important;
  min-width: 60px;
  height: 60px !important;
  border-radius: 8px;
  border: 2px solid #fff;
  outline: 2px solid #d9d9d9;
  box-sizing: unset !important;
  transition: all 0.6s ease;
  position: relative;
}

.spaOptionImage img {
  width: 60px !important;
  min-width: 60px;
  border-radius: 8px !important;
  height: 60px !important;
  box-shadow: none !important;
  object-fit: cover;
}

.spaImageFieldOption {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.spaImageFieldOption input {
  display: none;
}

.spaImageFieldOption input:checked + div.spaOptionImage {
  outline: 2px solid var(--color-primary);
}

.spaImageFieldToolTip {
  position: absolute;
  font-size: 12px;
  color: white;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  line-height: 1.5;
  padding: 2px 10px;
  z-index: 100;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease;
  font-family: var(--font);
  font-weight: 500;
}

.spaOptionImage:hover {
  transform: scale(1.5);
  z-index: 10;
}

.spaImageFieldOption:hover .spaImageFieldToolTip {
  opacity: 1;
}

.spaImageFieldToolTip::after {
  content: "";
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 5px 6px 0 6px;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
  transform: rotate(0deg);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

span.spaImageOptionChecked {
  position: absolute;
  right: -5px;
  bottom: -5px;
  font-size: 16px;
  color: #d9d9d9;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
}

span.spaImageOptionChecked .ri-check-line {
  display: none;
}

.spaImageFieldOption
  input:checked
  + div.spaOptionImage
  span.spaImageOptionChecked
  .ri-add-line {
  display: none;
}

.spaImageFieldOption
  input:checked
  + div.spaOptionImage
  span.spaImageOptionChecked
  .ri-check-line {
  display: block;
}

.spaImageFieldOption
  input:checked
  + div.spaOptionImage
  span.spaImageOptionChecked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

h3.spaFieldTitle {
  margin: 15px 0 10px;
  font-family: var(--font);
  font-size: 16px !important;
  color: var(--color-primary) !important;
}

.spaSelectField {
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  height: auto !important;
  padding: 10px;
  outline: none !important;
  width: auto;
  cursor: pointer;
}

input[type="text"].spaTextField,
textarea.spaMessageField {
  font-size: 15px;
  color: #333;
  font-family: var(--font);
  line-height: 1.5;
  height: auto !important;
  padding: 10px;
  outline: none !important;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d9d9d9;
}

textarea.spaMessageField {
  resize: none;
}

.spaSelectField:focus,
input[type="text"].spaTextField:focus,
textarea.spaMessageField:focus {
  border-color: var(--color-primary);
}

.spaCheckboxLabel,
.spaRadioFieldLabel {
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d9d9d9;
  margin-bottom: 5px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  position: relative;  
  cursor: pointer;
}

.spaCheckboxField:hover .spaCheckboxLabel,
.spaRadioField:hover .spaRadioFieldLabel {
  background: #f9f9f9;
}

.spaCheckBoxIcon {
  width: 22px;
  height: 22px;
  font-size: 16px;
  color: #d9d9d9;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.spaCheckBoxIcon .ri-check-line {
  display: none;
}

.spaCheckboxField,
.spaRadioField {
  display: block;
  margin: 0;
  cursor: pointer;
}

.spaCheckboxField input,
.spaRadioField input {
  display: none;
}

.spaCheckboxField input:checked + .spaCheckboxLabel .spaCheckBoxIcon {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.spaCheckboxField input:checked + .spaCheckboxLabel,
.spaRadioField input:checked + .spaRadioFieldLabel {
  background: #f9f9f9;
}

.spaCheckboxField
  input:checked
  + .spaCheckboxLabel
  .spaCheckBoxIcon
  .ri-check-line {
  display: block;
}

.spaCheckboxField
  input:checked
  + .spaCheckboxLabel
  .spaCheckBoxIcon
  .ri-add-line {
  display: none;
}

span.spaCheckboxLabelText,
span.spaRadioFieldLabelText {
  flex: 1;
  color: #333;
}

.spaCheckboxLabel small,
.spaRadioFieldLabel small,
.spaFieldPrice {
  font-size: 13px;
  color: #7a7a7a;
  font-family: var(--font);
  line-height: 1.5;
}

span.spaRadioFieldIcon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  position: relative;
}

span.spaRadioFieldIcon:after {
  content: "";
  width: 15px;
  height: 15px;
  display: none;
  min-width: 15px;
  border-radius: 50%;
  background: var(--color-primary);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.spaRadioField input:checked + .spaRadioFieldLabel .spaRadioFieldIcon:after {
  display: block;
}

.spaRadioField input:checked + .spaRadioFieldLabel .spaRadioFieldIcon {
  border-color: var(--color-primary);
}

.spaCheckboxChildren,
.spaRadioChildren {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.spaCheckboxField input:checked + .spaCheckboxLabel + .spaCheckboxChildren,
.spaRadioField input:checked + .spaRadioFieldLabel + .spaRadioChildren {
  display: flex;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

span.spaImageNone {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-error);
}

#spaPriceReview {
  margin-top: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  margin-bottom: 20px;
}

.spaPriceTable {
  width: 100%;
  border-collapse: collapse;
}

.spaPriceTable td {
  padding: 10px 15px !important;
  font-size: 14px;
  font-family: var(--font);
  border: none !important;
  background: transparent !important;
}

.spaPriceTable .spaTotalRow td {
  padding-top: 12px;
  font-weight: 500;
  font-size: 15px;
}

.spaPriceLabel {
  color: #333;
}

.spaPriceValue {
  text-align: right;
  white-space: nowrap;
}

table.spaPriceTable tr {
  border-bottom: 1px solid #d9d9d9;
}

h2.spaOrderSummary {
  margin: 20px 0 0 !important;
  font-size: 17px !important;
  font-family: var(--font);
  font-weight: 600 !important;
  color: var(--color-primary) !important;
  background: #f9f9f9;
  padding: 15px;
  border-bottom: 1px solid #d9d9d9;
}

tr.spaTotalRow {
  background: #f9f9f9;
}

form.cart {
  flex-wrap: wrap !important;
}

.spaProductOptionsContainer {
  display: flex;
  align-items: stretch;
  width: 100%;
}

div#spaContentRight {
  position: relative;
  flex: 0.5;
  padding-bottom: 50px;
}

.spaContentRightSticky {
  position: sticky;
  top: 50px;
}

div#spaProductOptions {
  flex: 1;
  padding-right: 35px;
}

.spaCheckboxField.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.spaCheckboxField.disabled * {
  text-decoration: line-through;
}

@media (max-width: 1024px) {
  .spaOptionImage:hover {
    transform: scale(1);
  }
}

@media (max-width: 767px) {
  .spaProductOptionsContainer {
    flex-wrap: wrap;
  }

  div#spaContentRight {
    flex: 100%;
  }

  .spaContentRightSticky {
    position: relative;
    top: unset;
  }

  div#spaProductOptions {
    flex: 100%;
    padding-right: 0;
    padding-bottom: 0px;
  }
}
