/* CodeMix Bime Kala Frontend Styles - Complete CSS */

/* ==========================================================================
   General Reset and Base Styles
   ========================================================================== */
.cmbk-insurance-section * {
  box-sizing: border-box;
}

.cmbk-insurance-section {
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Insurance Title
   ========================================================================== */
.cmbk-insurance-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1f2937;
  line-height: 1.3;
}

/* ==========================================================================
   Style 1 - Original Horizontal Layout
   ========================================================================== */
.cmbk-insurance-section.cmbk-style1 .cmbk-insurance-box {
  display: flex;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.cmbk-insurance-section.cmbk-style1 .cmbk-insurance-box:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cmbk-insurance-section.cmbk-style1 .cmbk-checkbox-column {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  border-left: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 1rem 0.75rem;
}

.cmbk-insurance-section.cmbk-style1 .cmbk-content-column {
  flex: 1;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cmbk-insurance-section.cmbk-style1 .cmbk-description-row {
  margin-bottom: 0.75rem;
}

.cmbk-insurance-section.cmbk-style1 .cmbk-description-row p {
  margin: 0;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.5;
}

.cmbk-insurance-section.cmbk-style1 .cmbk-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.cmbk-insurance-section.cmbk-style1 .cmbk-price-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Style 2 - Compact Button Layout
   ========================================================================== */
.cmbk-insurance-section.cmbk-style2 .cmbk-insurance-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-insurance-box:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cmbk-insurance-section.cmbk-style2 .cmbk-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0;
  gap: 1rem;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-title-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-title-icon-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-title-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-action-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-action-left {
  flex: 1;
  min-width: 0;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-price-right {
  flex-shrink: 0;
  text-align: left;
}

/* Style 2 Description */
.cmbk-insurance-section.cmbk-style2 .cmbk-description-row {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-description-row p {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}

/* ==========================================================================
   Style 2 Button Checkbox Button - UPDATED LOGIC
   ========================================================================== */
.cmbk-insurance-section.cmbk-style2 .cmbk-insurance-button-label {
  display: inline-block;
  cursor: pointer;
  width: max-content;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-insurance-button-checkbox {
  display: none;
}

/* Default state (unchecked - insurance not added) - FILLED BLUE with PLUS icon */
.cmbk-insurance-section.cmbk-style2 .cmbk-button-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #667eea;
  border-radius: 8px;
  background: #667eea;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  min-width: 100px;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

/* PLUS icon for unchecked state (Add Insurance) */
.cmbk-insurance-section.cmbk-style2 .cmbk-button-text::before {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-rule='evenodd'%3E%3Cpath d='M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm0 16c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13h-1v6h-6v1h6v6h1v-6h6v-1h-6v-6z' fill='%23ffffff'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* Checked state (insurance added) - OUTLINE RED with TRASH icon */
.cmbk-insurance-section.cmbk-style2 .cmbk-insurance-button-checkbox:checked + .cmbk-button-text {
  background: transparent;
  color: #ef4444;
  border-color: #ef4444;
}

/* TRASH icon for checked state (Remove Insurance) */
.cmbk-insurance-section.cmbk-style2 .cmbk-insurance-button-checkbox:checked + .cmbk-button-text::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 7H18L17 21H7L6 7Z' stroke='%23ef4444' stroke-width='2' fill='none'/%3E%3Cpath d='M8 7V5C8 4.44772 8.44772 4 9 4H15C15.5523 4 16 4.44772 16 5V7' stroke='%23ef4444' stroke-width='2' fill='none'/%3E%3Cpath d='M4 7H20' stroke='%23ef4444' stroke-width='2'/%3E%3C/svg%3E");
}

/* Hover states */
.cmbk-insurance-section.cmbk-style2 .cmbk-button-text:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cmbk-insurance-section.cmbk-style2 .cmbk-insurance-button-checkbox:not(:checked) + .cmbk-button-text:hover {
  background: #5a67d8;
  border-color: #5a67d8;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-insurance-button-checkbox:checked + .cmbk-button-text:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-color: #dc2626;
}

/* ==========================================================================
   Common Pricing Styles
   ========================================================================== */
.cmbk-discount-badge {
  background: #ef4444;
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}

.cmbk-price-regular {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 0.9rem;
}

.cmbk-price-final {
  font-weight: 600;
  color: #1f2937;
  font-size: 1rem;
}

/* Style 2 Price Container */
.cmbk-insurance-section.cmbk-style2 .cmbk-price-container {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 4px;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-price-container .cmbk-discount-badge {
  align-self: flex-end;
  font-size: 0.75rem;
  padding: 1px 6px;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-price-container .cmbk-price-regular {
  font-size: 0.875rem;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-price-container .cmbk-price-final {
  font-size: 1.125rem;
  font-weight: 700;
}

/* ==========================================================================
   Checkbox Styling (Style 1)
   ========================================================================== */
.cmbk-insurance-section.cmbk-style1 .cmbk-insurance-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  position: relative;
  background: #fff;
  margin: 0;
}

.cmbk-insurance-section.cmbk-style1 .cmbk-insurance-checkbox:checked {
  border-color: #10b981;
  background-color: #10b981;
}

.cmbk-insurance-section.cmbk-style1 .cmbk-insurance-checkbox:checked:before {
  content: '';
  position: absolute;
  top: 50%;
  right: 50%;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 0 2px 2px;
  transform: translate(50%, -60%) rotate(-45deg);
}

.cmbk-insurance-section.cmbk-style1 .cmbk-insurance-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.cmbk-insurance-section.cmbk-style1 .cmbk-insurance-checkbox:hover:not(:disabled) {
  border-color: #059669;
}

.cmbk-insurance-section.cmbk-style1 .cmbk-checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   Details Link
   ========================================================================== */
.cmbk-details-link {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  color: #667eea;
  white-space: nowrap;
  cursor: pointer;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-details-link {
  padding: 6px 12px;
  font-size: 13px;
}

.cmbk-details-link:hover {
  background-color: rgba(102, 126, 234, 0.1);
  color: #5a67d8;
  text-decoration: none;
}

.cmbk-details-link:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* ==========================================================================
   Chevron Icon
   ========================================================================== */
.cmbk-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  transform: rotate(180deg);
}

.cmbk-details-link:hover .cmbk-chevron {
  transform: rotate(180deg) translateX(2px);
}

/* ==========================================================================
   Style 2 Title and Content Improvements
   ========================================================================== */
.cmbk-insurance-section.cmbk-style2 .cmbk-insurance-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  line-height: 1.3;
  flex-shrink: 0;
}

/* ==========================================================================
   Success/Check Icon for Style 2
   ========================================================================== */
.cmbk-insurance-section.cmbk-style2 .cmbk-success-icon {
  width: 24px;
  height: 24px;
  background: transparent;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-success-icon-active {
  background: #10b981 !important;
  border-color: #10b981 !important;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-success-icon-active::after {
  content: '';
  width: 10px;
  height: 6px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

/* ==========================================================================
   Modal Overlay and Content
   ========================================================================== */
.cmbk-modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(2px);
  z-index: 9999;
  display: none;
  background: rgba(102, 126, 234, 0.15);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cmbk-modal-overlay.show {
  display: flex;
}

.cmbk-modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: cmbk-modal-slide-in 0.2s ease-out;
  outline: none;
}

@keyframes cmbk-modal-slide-in {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   Modal Close Button
   ========================================================================== */
.cmbk-modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  color: #6b7280;
  background: transparent;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.cmbk-modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.cmbk-modal-close:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* ==========================================================================
   Modal Title
   ========================================================================== */
.cmbk-modal-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  padding: 24px 20px 0 20px;
  color: #1f2937;
  line-height: 1.3;
}

/* ==========================================================================
   Modal Body
   ========================================================================== */
.cmbk-modal-body {
  padding: 0 20px 24px 20px;
  color: #374151;
  line-height: 1.6;
  font-size: 14px;
}

/* ==========================================================================
   Modal Footer Styles
   ========================================================================== */
.cmbk-modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 20px 20px 20px;
  border-top: 1px solid #e5e7eb;
  justify-content: flex-end;
  background: #fafafa;
  border-radius: 0 0 12px 12px;
}

.cmbk-modal-footer .cmbk-modal-toggle-insurance {
  padding: 10px 20px;
  border: 1px solid #667eea;
  background: #667eea;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 140px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cmbk-modal-footer .cmbk-modal-toggle-insurance:hover {
  background: #5a67d8;
  border-color: #5a67d8;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.cmbk-modal-footer .cmbk-modal-toggle-insurance:active {
  transform: translateY(0);
}

.cmbk-modal-footer .cmbk-modal-close-btn {
  padding: 10px 20px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cmbk-modal-footer .cmbk-modal-close-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
  transform: translateY(-1px);
}

.cmbk-modal-footer .cmbk-modal-close-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* ==========================================================================
   --- Cart Insurance Box ---
   ========================================================================== */
.cmbk-cart-insurance-box {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  background: #fff;
  color: #1f2937;
  position: relative;
}

.cmbk-cart-insurance-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(-90deg, #667eea, #10b981);
  border-radius: 12px 12px 0 0;
}

/* Style 1 Cart Layout */
.cmbk-insurance-section.cmbk-style1 .cmbk-cart-insurance-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cmbk-insurance-section.cmbk-style1 .cmbk-cart-insurance-box .cmbk-insurance-title {
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

.cmbk-insurance-section.cmbk-style1 .cmbk-cart-insurance-box .cmbk-description-row {
  margin-bottom: 0.5rem;
}

.cmbk-insurance-section.cmbk-style1 .cmbk-cart-insurance-box .cmbk-description-row p {
  color: #6b7280;
  font-size: 0.875rem;
}

.cmbk-insurance-section.cmbk-style1 .cmbk-cart-insurance-box .cmbk-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.cmbk-insurance-section.cmbk-style1 .cmbk-cart-insurance-box .cmbk-price-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Style 2 Cart Layout */
.cmbk-insurance-section.cmbk-style2 .cmbk-cart-insurance-box {
  padding: 1rem;
  gap: 0.75rem;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-cart-insurance-box .cmbk-title-row {
  margin-bottom: 0.5rem;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-cart-insurance-box .cmbk-insurance-title {
  font-size: 1rem;
  margin: 0;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-cart-insurance-box .cmbk-action-price-row {
  margin-bottom: 0.5rem;
  gap: 0.75rem;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-cart-insurance-box .cmbk-price-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

/* Cart Action Buttons */
.cmbk-insurance-section.cmbk-style1 .cmbk-cart-insurance-box .cmbk-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-cart-insurance-box .cmbk-action-left {
  display: flex;
  justify-content: flex-start;
}

.cmbk-insurance-section.cmbk-style2 .cmbk-cart-insurance-box .cmbk-action-left button {
  min-width: 120px;
}

.cmbk-add-insurance,
.cmbk-remove-insurance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 28px 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  background-size: 16px;
  background-position: 8px center;
  background-repeat: no-repeat;
}

.cmbk-add-insurance {
  background: #667eea;
  color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%202C6.48%202%202%206.48%202%2012s4.48%2010%2010%2010%2010-4.48%2010-10S17.52%202%2012%202zm-2%2015l-5-5%201.41-1.41L10%2014.17l7.59-7.59L19%208l-9%209z%22%20fill%3D%22%23ffffff%22%2F%3E%3C%2Fsvg%3E");
}

.cmbk-add-insurance:hover {
  background: #5a67d8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cmbk-remove-insurance {
  background: #ef4444;
  color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19%205H5v14h14V5zM7%2017H6V7h1v10zm5%200h-1V7h1v10zm4%200h-1V7h1v10z%22%20fill%3D%22%23ffffff%22%2F%3E%3C%2Fsvg%3E");
}

.cmbk-remove-insurance:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   Typography
   ========================================================================== */
.cmbk-insurance-section h3 {
  margin: 0 0 16px 0;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1f2937;
}

.cmbk-insurance-section p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

/* ==========================================================================
   Loading States
   ========================================================================== */
.cmbk-loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.cmbk-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 50%;
  width: 20px;
  height: 20px;
  margin: -10px -10px 0 0;
  border: 2px solid #f3f4f6;
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

/* ==========================================================================
   Disabled checkbox styles
   ========================================================================== */
.cmbk-insurance-checkbox:disabled,
.cmbk-insurance-button-checkbox:disabled + .cmbk-button-text {
  opacity: 0.6;
  cursor: not-allowed;
}

.cmbk-insurance-checkbox:disabled + .cmbk-checkbox-label,
.cmbk-insurance-button-label:has(input:disabled) {
  cursor: not-allowed;
}

/* ==========================================================================
   Required Insurance Visual Indicator
   ========================================================================== */
.cmbk-insurance-checkbox[data-is-required="1"],
.cmbk-insurance-button-checkbox[data-is-required="1"] + .cmbk-button-text {
  position: relative;
}

.cmbk-insurance-checkbox[data-is-required="1"]:after,
.cmbk-insurance-button-checkbox[data-is-required="1"] + .cmbk-button-text:after {
  content: "★";
  position: absolute;
  top: -2px;
  left: -2px;
  color: #f59e0b;
  font-size: 12px;
  font-weight: bold;
  z-index: 1;
}

/* Required insurance disabled state enhancement */
.cmbk-insurance-checkbox[data-is-required="1"]:disabled,
.cmbk-insurance-button-checkbox[data-is-required="1"]:disabled + .cmbk-button-text {
  border-color: #f59e0b !important;
  background-color: #fffbeb !important;
}

.cmbk-insurance-section.cmbk-style1 .cmbk-insurance-checkbox[data-is-required="1"]:disabled:checked {
  background-color: #f59e0b !important;
  border-color: #f59e0b !important;
}

.cmbk-insurance-section.cmbk-style1 .cmbk-insurance-checkbox[data-is-required="1"]:disabled:checked:before {
  border-color: white;
}

/* ==========================================================================
   Default Selected State
   ========================================================================== */
.cmbk-insurance-checkbox:checked:not([data-is-required="1"]),
.cmbk-insurance-button-checkbox:checked:not([data-is-required="1"]) + .cmbk-button-text {
  border-color: #10b981;
}

.cmbk-insurance-section.cmbk-style1 .cmbk-insurance-checkbox:checked:not([data-is-required="1"]) {
  border-color: #10b981;
  background-color: #10b981;
}

/* ==========================================================================
   Snackbar Notifications - UPDATED POSITIONING
   ========================================================================== */
.cmbk-snackbar {
  position: fixed;
  top: 100px;
  right: 50%;
  transform: translateX(50%) translateY(-100%);
  z-index: 10000;
  padding: 12px 24px;
  background-color: #667eea;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  max-width: 350px;
  width: auto;
  word-wrap: break-word;
  transition: transform 0.3s ease;
  text-align: center;
}

.cmbk-snackbar.show {
  transform: translateX(50%) translateY(0);
}

.cmbk-snackbar-success {
  background-color: #10b981;
}

.cmbk-snackbar-error {
  background-color: #ef4444;
}

.cmbk-snackbar-warning {
  background-color: #f59e0b;
}

.cmbk-snackbar-info {
  background-color: #667eea;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
  .cmbk-insurance-section {
    margin: 10px 0;
  }

  .cmbk-insurance-section.cmbk-style1 .cmbk-insurance-box {
    flex-direction: column;
    border-radius: 8px;
  }

  .cmbk-insurance-section.cmbk-style1 .cmbk-checkbox-column {
    min-width: auto;
    padding: 0.75rem;
    border-left: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .cmbk-insurance-section.cmbk-style1 .cmbk-content-column {
    padding: 0.75rem;
  }

  .cmbk-insurance-section.cmbk-style1 .cmbk-price-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .cmbk-insurance-section.cmbk-style1 .cmbk-price-left {
    justify-content: space-between;
    flex-direction: row;
  }

  .cmbk-insurance-section.cmbk-style2 .cmbk-insurance-box {
    padding: 1rem;
    gap: 0.75rem;
  }

  .cmbk-insurance-section.cmbk-style2 .cmbk-title-row,
  .cmbk-insurance-section.cmbk-style2 .cmbk-action-price-row {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .cmbk-insurance-section.cmbk-style2 .cmbk-title-icon-row {
    justify-content: flex-start;
  }

  .cmbk-insurance-section.cmbk-style2 .cmbk-action-left,
  .cmbk-insurance-section.cmbk-style2 .cmbk-price-right {
    text-align: center;
  }

  .cmbk-insurance-section.cmbk-style2 .cmbk-price-container {
    align-items: center;
  }

  .cmbk-insurance-section.cmbk-style2 .cmbk-button-text {
    padding: 12px 16px;
    font-size: 15px;
  }

  .cmbk-modal-content {
    width: 95%;
    margin: 0;
    max-height: 90vh;
  }

  .cmbk-modal-footer {
    flex-direction: column;
    gap: 8px;
  }

  .cmbk-modal-footer .cmbk-modal-toggle-insurance,
  .cmbk-modal-footer .cmbk-modal-close-btn {
    width: 100%;
  }

  .cmbk-cart-insurance-box {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  .cmbk-snackbar {
    top: 80px;
    right: 20px;
    left: 20px;
    max-width: none;
    transform: translateY(-100%);
    width: calc(100% - 40px);
  }

  .cmbk-snackbar.show {
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .cmbk-insurance-title {
    font-size: 1.1rem;
  }

  .cmbk-insurance-section.cmbk-style2 .cmbk-insurance-title {
    font-size: 1rem;
  }

  .cmbk-price-final {
    font-size: 0.95rem;
  }

  .cmbk-insurance-section.cmbk-style2 .cmbk-price-container .cmbk-price-final {
    font-size: 1rem;
  }

  .cmbk-snackbar {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* ==========================================================================
   Accessibility Improvements
   ========================================================================== */
.cmbk-insurance-section [role="checkbox"] {
  cursor: pointer;
}

.cmbk-insurance-section .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
.cmbk-insurance-section *:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .cmbk-insurance-box {
    border-width: 2px;
  }

  .cmbk-modal-footer {
    border-top-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cmbk-details-link:hover .cmbk-chevron {
    transform: none;
  }

  .cmbk-snackbar {
    transition: none;
  }
}

/* Print styles */
@media print {
  .cmbk-modal-overlay,
  .cmbk-snackbar {
    display: none !important;
  }

  .cmbk-insurance-box {
    box-shadow: none;
    border: 1px solid #000;
  }
}