/* YourTourKey — Ek hizmetler ve klima seçimi.
 * ytk-product.css içinden taşınmıştır. Masaüstü ve mobil kurallar birlikte tutulur.
 */

/* BOOKING FORM - OPTIONAL SERVICES */

#booking-form .yith-wcbk-form-section-services {
    margin: 2px 0 8px !important;
    padding: 0 !important;
}

#booking-form .yith-wcbk-form-section-services > .yith-wcbk-form-section__content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px !important;
}

#booking-form .yith-wcbk-form-section-service {
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

#booking-form .yith-wcbk-form-section-service .yith-wcbk-checkbox {
    position: relative;
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    margin: 0 !important;
    padding: 8px 10px !important;
    border: 1px solid #d8e2e5;
    border-radius: 10px;
    background: #f8fafb;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

@media (hover: hover) {
    #booking-form .yith-wcbk-form-section-service .yith-wcbk-checkbox:hover {
            border-color: rgba(15, 118, 110, 0.42);
            background: #f3faf8;
            transform: translateY(-1px);
        }
}

#booking-form .yith-wcbk-form-section-service input[type="checkbox"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#booking-form .yith-wcbk-form-section-service .yith-wcbk-checkbox__checkbox {
    position: relative;
    display: block !important;
    flex: 0 0 18px;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    border: 1.5px solid #b8c6cb !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    box-sizing: border-box;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

#booking-form .yith-wcbk-form-section-service .yith-wcbk-checkbox__checkbox::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg) scale(0.72);
    transition: opacity 120ms ease, transform 120ms ease;
}

#booking-form .yith-wcbk-form-section-service input[type="checkbox"]:checked + .yith-wcbk-checkbox__checkbox {
    border-color: #0f766e !important;
    background: #0f766e !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.10);
}

#booking-form .yith-wcbk-form-section-service input[type="checkbox"]:checked + .yith-wcbk-checkbox__checkbox::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

#booking-form .yith-wcbk-form-section-service .yith-wcbk-checkbox__label {
    min-width: 0;
    color: #263846 !important;
    font-size: var(--ytk-booking-field-size) !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em;
}

#booking-form .yith-wcbk-form-section-service .yith-wcbk-checkbox:has(input[type="checkbox"]:checked) {
    border-color: rgba(15, 118, 110, 0.58);
    background: #eef8f6;
    box-shadow: 0 5px 14px rgba(15, 118, 110, 0.07);
}

#booking-form .yith-wcbk-form-section-service .yith-wcbk-checkbox:has(input[type="checkbox"]:checked) .yith-wcbk-checkbox__label {
    color: #0b5f59 !important;
}

#booking-form .yith-wcbk-form-section-service input[type="checkbox"]:focus-visible + .yith-wcbk-checkbox__checkbox {
    outline: 3px solid rgba(15, 118, 110, 0.20);
    outline-offset: 2px;
}

#booking-form .yith-wcbk-form-section-service .yith-wcbk-checkbox:has(input[type="checkbox"]:disabled) {
    cursor: not-allowed;
    opacity: 0.55;
}

@media (max-width: 520px) {
    #booking-form .yith-wcbk-form-section-services > .yith-wcbk-form-section__content {
            gap: 6px !important;
        }

    #booking-form .yith-wcbk-form-section-service .yith-wcbk-checkbox {
            min-height: 40px;
            gap: 9px;
            padding: 8px 9px !important;
            border-radius: 9px;
        }

    #booking-form .yith-wcbk-form-section-service .yith-wcbk-checkbox__label {
            font-size: 12.75px !important;
        }
}

/* === YTK CABIN COMFORT — booking choice === */
.ytk-ac-native-service {
  display: none !important;
}

.ytk-only-ac-service > .yith-wcbk-form-section__label,
.ytk-only-ac-service > .yith-wcbk-form-section__title {
  display: none !important;
}

.ytk-cabin-comfort {
  gap: 9px;
  width: 100%;
  color: #1a2b49;
}

.ytk-cabin-comfort__option {
  appearance: none;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 9px 15px;
  border: 1.5px solid rgba(26, 43, 73, .16);
  border-radius: 999px;
  background: #f1f3f5;
  color: #1a2b49;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  font-family: inherit;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

@media (max-width: 767px) {
    .single-product .ytk-cabin-comfort {
        color: #fff;
      }

    .single-product .ytk-cabin-comfort__option {
        min-height: 56px;
        border-color: rgba(255, 255, 255, .28);
        background: rgba(255, 255, 255, .08);
        color: #fff;
      }
}

/* === /YTK CABIN COMFORT === */

/* Hide YITH's raw AC checkbox; the styled selector above controls it. */
.yith-wcbk-checkbox:has(input[name="booking_services[]"][value="57"]) {
  display: none !important;
}

html body.single-product .yith-wcbk-booking-form .yith-wcbk-form-section label.yith-wcbk-checkbox.ytk-ac-native-service,
html body.single-product .yith-wcbk-booking-form label.yith-wcbk-checkbox:has(#yith-wcbk-booking-services-57) {
  display: none !important;
}

/* === YTK AC SINGLE-ROW DESIGN === */
.ytk-cabin-comfort {
  display: block !important;
  margin: 0 0 10px !important;
}

.ytk-cabin-comfort__choices {
  display: block !important;
}

.ytk-cabin-comfort__option[data-ytk-ac="1"],
.single-product .ytk-cabin-comfort__option[data-ytk-ac="1"] {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 8px 15px;
  border: 0 !important;
  border-radius: 999px;
  background: #f1f3f5 !important;
  color: #1a2b49 !important;
  box-shadow: none !important;
  display: grid !important;
  align-items: center;
  gap: 9px;
  text-align: left;
}

.ytk-cabin-comfort__option[data-ytk-ac="1"]::before {
  content: "ac_unit";
  color: #1a2b49;
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.ytk-cabin-comfort__option[data-ytk-ac="1"] > span {
  font-weight: 700;
  overflow-wrap: normal;
}

.ytk-cabin-comfort__option[data-ytk-ac="1"] > small {
  color: #687388 !important;
  font-weight: 600;
}

.ytk-cabin-comfort__option[data-ytk-ac="1"]::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 1.5px solid #7b8798;
  background: #fff;
  color: #fff;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  font-family: "Material Symbols Rounded";
  font-size: 16px;
  line-height: 1;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 650, "GRAD" 0, "opsz" 20;
  transition: background-color .18s ease, border-color .18s ease;
}

.ytk-cabin-comfort__option[data-ytk-ac="1"]:hover {
  background: #e9edf2 !important;
}

.ytk-cabin-comfort__option[data-ytk-ac="1"].is-active::after {
  content: "check";
  border-color: #0071eb;
  background: #0071eb;
}

@media (max-width: 520px) {
    .ytk-cabin-comfort__option[data-ytk-ac="1"],
      .single-product .ytk-cabin-comfort__option[data-ytk-ac="1"] {
        min-height: 48px;
        padding-inline: 14px;
        gap: 8px;
      }
}

.ytk-cabin-comfort__option[data-ytk-ac="1"]::before {
  font-size: 22px;
}

.ytk-cabin-comfort__option[data-ytk-ac="1"] > span {
  font-size: 13.5px;
  line-height: 1.05;
}

.ytk-cabin-comfort__option[data-ytk-ac="1"] > small {
  font-size: 10.5px !important;
  line-height: 1.05;
}

.ytk-cabin-comfort__option[data-ytk-ac="1"]::after {
  border-radius: 50% !important;
}

/* === /YTK AC INLINE PRICE FINAL === */

/* === YTK AC PRICE RIGHT-BOTTOM ALIGNMENT === */
.ytk-cabin-comfort__option[data-ytk-ac="1"],
.single-product .ytk-cabin-comfort__option[data-ytk-ac="1"] {
  grid-template-columns: auto max-content minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  column-gap: 8px !important;
  row-gap: 1px !important;
}

.ytk-cabin-comfort__option[data-ytk-ac="1"]::before {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
}

.ytk-cabin-comfort__option[data-ytk-ac="1"] > span {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: start;
}

.ytk-cabin-comfort__option[data-ytk-ac="1"] > small {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: end;
  white-space: nowrap;
}

.ytk-cabin-comfort__option[data-ytk-ac="1"]::after {
  grid-column: 4;
  grid-row: 1 / 3;
  align-self: center;
}

/* === YTK BOOKING RHYTHM 2026-09 === */
#booking-form .ytk-cabin-comfort {
    margin-bottom: 0 !important;
}

#booking-form .yith-wcbk-form-section-services-wrapper > .yith-wcbk-form-section-services:not(.ytk-only-ac-service):has(.ytk-ac-native-service) {
    margin: 0 !important;
}

/* === YTK BOOKING EXACT 8PX ALIGNMENT === */
#booking-form .ytk-only-ac-service {
    margin-bottom: 0 !important;
}
