/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/


/* === Komponent-sektioner === */
.cart_group.composite_form.full_width .composite_component {
  padding: 20px 0;
  border-bottom: 1px solid #e5e5ea;
}

.cart_group.composite_form.full_width .composite_component:last-of-type {
  border-bottom: none;
}

/* Titel och beskrivning */
.cart_group.composite_form.full_width .component_title {
  margin: 0 0 4px;

  font-weight: 700;
}

.cart_group.composite_form.full_width .component_description_wrapper {
  margin-bottom: 12px;

  color: #6e6e73;
}

/* Göm default “Tillgängliga alternativ:” */
.cart_group.composite_form.full_width .select_label {
  display: none;
}

/* Lista med kort */
.cart_group.composite_form.full_width 
  .component_option_radio_buttons_container {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Reset li */
.cart_group.composite_form.full_width 
  .component_option_radio_button_container {
  margin: 0;
}

/* === Korten (utan skuggor) === */
.cart_group.composite_form.full_width 
  .component_option_radio_button {
  position: relative;
  padding: 14px 16px;
  
  border: 2px solid #d2d2d7;   /* ljus Apple border */

  background: #ffffff;

  display: flex;
  align-items: center;
  justify-content: space-between;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.15s ease;
}

/* Dölj radion */
.cart_group.composite_form.full_width 
  .component_option_radio_button input[type="radio"] {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

/* Label overlay – gör hela kortet klickbart */
.cart_group.composite_form.full_width 
  .component_option_radio_button .radio_button_input label {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Texten i kortet */
.cart_group.composite_form.full_width 
  .component_option_radio_button .radio_button_description {
  position: relative;
  z-index: 1;
  flex: 1;
}

.cart_group.composite_form.full_width 
  .component_option_radio_button .radio_button_title {
  color: #1d1d1f;
    margin-top: 0;
    margin-bottom: 0;
}

.woocommerce ul.component_option_radio_buttons_container li.component_option_radio_button_container .radio_button_description .price {
  margin-bottom: 0 !important;
}

/* Pris till höger */
.cart_group.composite_form.full_width 
  .component_option_radio_button .radio_button_price {
  white-space: nowrap;
  color: #1d1d1f;
}

/* Hover — endast borderfärg & lätt lyft */
.cart_group.composite_form.full_width 
  .component_option_radio_button:hover {
  border-color: #bdbdc2;
  /* transform: translateY(-1px); */
}

/* === Selected state (utan shadow) === */
.cart_group.composite_form.full_width 
  .component_option_radio_button.selected {
  border-color: #0071e3;     /* Apple blå */
  background: #f5f9ff;       /* lätt blå tint */
}

/* För keyboard focus */
.cart_group.composite_form.full_width 
  .component_option_radio_button.selected:focus-within {
  border-color: #0a84ff;
}



/* === "Ditt val" / component summary-kortet === */

.cart_group.composite_form.full_width .component_summary {
  margin-top: 16px;
}

.cart_group.composite_form.full_width .component_summary .summary_content {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #e5e5ea;
  background: #ffffff;

  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* Bild till vänster */
.cart_group.composite_form.full_width 
  .component_summary .composited_product_images {
  flex: 0 0 96px;
  max-width: 96px;
}

.cart_group.composite_form.full_width 
  .component_summary .composited_product_images img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Text + select till höger */
.cart_group.composite_form_full_width,
.cart_group.composite_form.full_width 
  .component_summary .details.component_data {
  flex: 1;
}

/* Ta bort tabell-känslan, mer “form”-känsla */
.cart_group.composite_form.full_width 
  .component_summary table.variations {
  border-collapse: collapse;
  width: 100%;
}

.cart_group.composite_form.full_width 
  .component_summary table.variations td {
  border: 0;
  padding: 0;
}

/* Label ovanför select */
.cart_group.composite_form.full_width 
  .component_summary .variations .label label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6e6e73;
}

/* Själva selecten */
.cart_group.composite_form.full_width 
  .component_summary .variations .value select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d2d2d7;
  background-color: #ffffff;
  font: inherit;
  color: #1d1d1f;

  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cart_group.composite_form.full_width 
  .component_summary .variations .value select:focus {
  outline: none;
  border-color: #0071e3;
  background-color: #f5f9ff;
}

/* "Rensa" länken under select */
.cart_group.composite_form.full_width 
  .component_summary .reset_variations_wrapper_fixed {
  margin-top: 4px;
}

.cart_group.composite_form.full_width 
  .component_summary .reset_variations_wrapper_fixed .reset_variations {
  font-size: 13px;
  color: #6b21a8; /* eller din primära lila */
}

/* Lilla "Ditt val" rubriken ovanför kortet */
.cart_group.composite_form.full_width 
  .component_summary .component_section_title {
  margin-bottom: 4px;
}


.woocommerce ul.component_option_radio_buttons_container li.component_option_radio_button_container .radio_button_description .price {
  font-weight: 700;
}

.cart_group.composite_form.full_width .component_summary .summary_content {
  border-radius: 0;
  padding: 14px 32px;
  border: 2px solid var(--neutral);
}


.component .composited_product_title_wrapper {
  padding-top: 0 !important;
}

.composited_product_title_wrapper,
.composited_product_details_wrapper {
  width: 100%;
}

.cart_group.composite_form.full_width .component_summary .composited_product_images {
  max-width: 400px;
}


/* Custom Styles */
.woocommerce ul.component_option_thumbnails_container li.component_option_thumbnail_container .thumbnail_description .price {
	margin-top: var(--space-xs);
}

.component_option_thumbnail {
	font-size: var(--text-s);
	background-color: var(--white);
}

.component_option_thumbnail .image {
	padding: var(--space-s) !important;
}

.component_option_thumbnail .thumbnail_description {
	line-height: 1.4;
}

.component_option_thumbnail .thumbnail_price bdi {
	font-weight: 600;
}

.component_option_thumbnail_container .thumbnail_buttons {
	padding: 0 !important;
}

.cart_group.composite_form.full_width .component_summary .variations .value select {
	margin-bottom: var(--space-s);
}
