.tmr-package-protection-container {
  width: 100%;
  padding: 12px;
  font-size: var(--protection-font-size);
  line-height: 1.4;
  color: var(--protection-text);
  background-color: var(--protection-background);
  border: var(--protection-border-width) var(--protection-border-style)
    var(--protection-border);
  margin-top: var(--protection-margin-top);
  margin-bottom: var(--protection-margin-bottom);
  border-radius: var(--protection-border-radius);
  box-shadow: var(--protection-box-shadow);
}

.tmr-package-protection-container .tmr-protection-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tmr-package-protection-container .tmr-protection-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex: 1;
  gap: 8px;
  font-weight: 500;
}

.tmr-package-protection-container .tmr-protection-checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--protection-border);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.tmr-package-protection-container .tmr-protection-checkbox:checked {
  background-color: var(--protection-accent);
  border-color: var(--protection-accent);
}

.tmr-package-protection-container .tmr-protection-checkbox:checked::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 12px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tmr-package-protection-container .tmr-protection-checkbox:hover {
  border-color: var(--protection-accent);
}

.tmr-package-protection-container .tmr-protection-checkbox:focus {
  outline: 2px solid var(--protection-accent);
  outline-offset: 2px;
}

.tmr-package-protection-container
  .tmr-protection-checkbox.tmr-checkbox-loading {
  background-color: var(--protection-accent);
  border-color: var(--protection-accent);
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.tmr-package-protection-container
  .tmr-protection-checkbox.tmr-checkbox-loading::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 12px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tmr-package-protection-container .tmr-protection-summary {
  font-size: var(--protection-font-size);
  color: var(--protection-text);
}

.tmr-package-protection-container .tmr-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 2px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.tmr-package-protection-container .tmr-toggle-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.tmr-package-protection-container .tmr-toggle-btn:focus {
  outline: 2px solid var(--protection-accent);
  outline-offset: 2px;
}

.tmr-package-protection-container .tmr-toggle-text {
  font-size: calc(var(--protection-font-size) - 1px);
  color: var(--protection-accent);
  font-weight: 500;
}

.tmr-package-protection-container .tmr-protection-details {
  border-top: 1px solid var(--protection-border);
  margin-top: 12px;
  padding-top: 12px;
  animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tmr-package-protection-container .tmr-benefits {
  margin-top: 8px;
  overflow-y: scroll;
}

.tmr-package-protection-container .tmr-benefits-header {
  font-weight: 700;
  font-size: calc(var(--protection-font-size) - 2px);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: var(--protection-text);
}

.tmr-package-protection-container .tmr-benefits-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.tmr-package-protection-container .tmr-benefits-table th {
  background-color: rgba(0, 0, 0, 0.03);
  font-weight: 600;
  font-size: calc(var(--protection-font-size) - 3px);
  letter-spacing: 0.3px;
  text-align: center;
  padding: 8px 6px;
  border: 1px solid var(--protection-border);
}

.tmr-package-protection-container .tmr-benefits-table th:first-of-type {
  text-align: left;
}

.tmr-package-protection-container .tmr-benefits-table td {
  text-align: center;
  padding: 10px 6px;
  font-size: calc(var(--protection-font-size) - 1px);
  border: 1px solid var(--protection-border);
}

.tmr-package-protection-container .tmr-benefits-table .tmr-benefit-label {
  text-align: left;
  font-weight: 400;
  line-height: 1.3;
  vertical-align: middle;
  display: table-cell;
}

.tmr-package-protection-container
  .tmr-benefits-table
  tr:last-child
  .tmr-benefit-label {
  gap: 4px;
  display: flex;
  align-items: center;
  text-wrap: nowrap;
}

.tmr-package-protection-container .tmr-benefits-table .tmr-icon {
  font-weight: 700;
  font-size: 16px;
}

.tmr-package-protection-container .tmr-benefits-table .tmr-icon-check {
  color: var(--protection-check-color, #00a94f);
}

.tmr-package-protection-container .tmr-benefits-table .tmr-icon-cross {
  color: var(--protection-cross-color, #dc3545);
}

.tmr-package-protection-container .tmr-tooltip-btn {
  background: none;
  border: none;
  color: var(--protection-accent);
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
  padding: 0;
  margin: 0;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-wrap: auto;
  font-weight: bolder;
}

.tmr-package-protection-container .tmr-tooltip-btn:hover {
  color: var(--protection-accent);
}

.tmr-package-protection-container .tmr-tooltip-btn:focus {
  outline: 2px solid var(--protection-accent);
  outline-offset: 2px;
}

.tmr-package-protection-container .tmr-tooltip-favicon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
}

.tmr-package-protection-container .tmr-tooltip-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
}

.tmr-package-protection-container .tmr-tooltip-favicon[src=""],
.tmr-package-protection-container .tmr-tooltip-icon::before,
.tmr-package-protection-container .tmr-tooltip-favicon::before,
.tmr-package-protection-container .tmr-tooltip-icon::after,
.tmr-package-protection-container .tmr-tooltip-favicon::after {
  display: none !important;
}

.tmr-package-protection-container .tmr-tooltip-text {
  text-wrap: nowrap;
  vertical-align: middle;
}

.tmr-package-protection-container .tmr-tooltip-modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.2s ease-in-out;
}

.tmr-package-protection-container .tmr-protection-modal,
.tmr-protection-modal {
  position: fixed;
  z-index: 99999999999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-in-out;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  font-size: var(--protection-font-size);
  line-height: 1.4;
  color: var(--protection-text);
}

.tmr-package-protection-container .tmr-modal-backdrop,
.tmr-protection-modal .tmr-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.tmr-package-protection-container .tmr-modal-content,
.tmr-protection-modal .tmr-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease-out;
  margin: 20px;
}

.tmr-package-protection-container .tmr-modal-header,
.tmr-protection-modal .tmr-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #eee;
}

.tmr-package-protection-container .tmr-modal-title,
.tmr-protection-modal .tmr-modal-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--protection-text);
}

.tmr-package-protection-container .tmr-modal-close,
.tmr-protection-modal .tmr-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.tmr-package-protection-container .tmr-modal-close:hover {
  color: #333;
  background-color: rgba(0, 0, 0, 0.05);
}

.tmr-package-protection-container .tmr-modal-body {
  padding: 24px;
}

.tmr-package-protection-container .tmr-modal-divider {
  height: 1px;
  background-color: #eee;
  margin: 16px 0;
}

.tmr-package-protection-container .tmr-modal-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tmr-package-protection-container .tmr-modal-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 12px;
  flex: 1;
}

.tmr-package-protection-container .tmr-modal-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--protection-border);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.tmr-package-protection-container .tmr-modal-checkbox:checked {
  background-color: var(--protection-accent);
  border-color: var(--protection-accent);
}

.tmr-package-protection-container .tmr-modal-checkbox:checked::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 14px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tmr-package-protection-container .tmr-modal-checkbox.tmr-checkbox-loading {
  background-color: var(--protection-accent);
  border-color: var(--protection-accent);
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.tmr-package-protection-container
  .tmr-modal-checkbox.tmr-checkbox-loading::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 14px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tmr-package-protection-container .tmr-modal-label-text {
  font-weight: 500;
  font-size: calc(var(--protection-font-size) + 2px);
  color: var(--protection-text);
}

.tmr-package-protection-container .tmr-modal-price {
  font-weight: 600;
  font-size: 16px;
  color: var(--protection-accent);
}

.tmr-package-protection-container .tmr-modal-subtitle {
  margin-bottom: 20px;
}

.tmr-package-protection-container .tmr-modal-subtitle h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--protection-text);
}

.tmr-package-protection-container .tmr-modal-features {
  margin-bottom: 20px;
}

.tmr-package-protection-container .tmr-feature-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.tmr-package-protection-container .tmr-feature-item:last-child {
  margin-bottom: 0;
}

.tmr-package-protection-container .tmr-feature-bullet {
  color: var(--protection-accent);
  font-weight: bold;
  font-size: 16px;
  line-height: 1.2;
  margin-top: 2px;
  flex-shrink: 0;
}

.tmr-package-protection-container .tmr-feature-content {
  flex: 1;
}

.tmr-package-protection-container .tmr-feature-title {
  font-weight: 600;
  font-size: var(--protection-font-size);
  color: var(--protection-text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.tmr-package-protection-container .tmr-feature-description {
  font-size: calc(var(--protection-font-size) - 1px);
  color: #666;
  line-height: 1.4;
}

.tmr-package-protection-container .tmr-modal-disclaimer {
  margin-bottom: 16px;
}

.tmr-package-protection-container .tmr-modal-disclaimer p {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

.tmr-package-protection-container .tmr-modal-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tmr-package-protection-container .tmr-modal-links a {
  font-size: 13px;
  color: var(--protection-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.tmr-package-protection-container .tmr-modal-links a:hover {
  color: #004c99;
  text-decoration: underline;
}

.tmr-protection-modal * {
  box-sizing: border-box;
}

.tmr-protection-modal .tmr-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.tmr-protection-modal .tmr-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease-out;
  margin: 20px;
}

.tmr-protection-modal .tmr-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #eee;
}

.tmr-protection-modal .tmr-modal-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--protection-text);
}

.tmr-protection-modal .tmr-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1;
}

.tmr-protection-modal .tmr-modal-close:hover {
  background-color: #f5f5f5;
  color: #333;
}

.tmr-protection-modal .tmr-modal-body {
  padding: 20px 24px 24px;
}

.tmr-protection-modal .tmr-modal-divider {
  height: 1px;
  background-color: #eee;
  margin: 16px 0;
}

.tmr-protection-modal .tmr-modal-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tmr-protection-modal .tmr-modal-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 12px;
  flex: 1;
}

.tmr-protection-modal .tmr-modal-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--protection-border);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.tmr-protection-modal .tmr-modal-checkbox:checked {
  background-color: var(--protection-accent);
  border-color: var(--protection-accent);
}

.tmr-protection-modal .tmr-modal-checkbox:checked::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 14px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tmr-protection-modal .tmr-modal-checkbox.tmr-checkbox-loading {
  background-color: var(--protection-accent);
  border-color: var(--protection-accent);
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.tmr-protection-modal .tmr-modal-checkbox.tmr-checkbox-loading::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 14px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tmr-protection-modal .tmr-modal-label-text {
  font-weight: 500;
  font-size: calc(var(--protection-font-size) + 2px);
  color: var(--protection-text);
}

.tmr-protection-modal .tmr-modal-price {
  font-weight: 600;
  font-size: 16px;
  color: var(--protection-accent);
}

.tmr-protection-modal .tmr-modal-subtitle {
  margin-bottom: 16px;
}

.tmr-protection-modal .tmr-modal-subtitle h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--protection-text);
}

.tmr-protection-modal .tmr-modal-features {
  margin-bottom: 20px;
}

.tmr-protection-modal .tmr-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.tmr-protection-modal .tmr-feature-item:last-child {
  margin-bottom: 0;
}

.tmr-protection-modal .tmr-feature-bullet {
  color: var(--protection-accent);
  font-weight: bold;
  font-size: 16px;
  line-height: 1.2;
  margin-top: 2px;
  flex-shrink: 0;
}

.tmr-protection-modal .tmr-feature-content {
  flex: 1;
}

.tmr-protection-modal .tmr-feature-title {
  font-weight: 600;
  font-size: var(--protection-font-size);
  color: var(--protection-text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.tmr-protection-modal .tmr-feature-description {
  font-size: calc(var(--protection-font-size) - 1px);
  color: #666;
  line-height: 1.4;
}

.tmr-protection-modal .tmr-modal-disclaimer {
  margin-bottom: 16px;
}

.tmr-protection-modal .tmr-modal-disclaimer p {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

.tmr-protection-modal .tmr-modal-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tmr-protection-modal .tmr-modal-links a {
  font-size: 13px;
  color: var(--protection-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.tmr-protection-modal .tmr-modal-links a:hover {
  color: #004c99;
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .tmr-protection-modal,
  .tmr-protection-modal .tmr-modal-content {
    animation: none;
  }

  .tmr-protection-modal .tmr-modal-backdrop {
    backdrop-filter: none;
  }
}

body.tmr-modal-open {
  overflow: hidden !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tmr-package-protection-container .tmr-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;
}

@media (max-width: 480px) {
  .tmr-package-protection-container {
    padding: 12px;
    font-size: calc(var(--protection-font-size) - 1px);
  }

  .tmr-package-protection-container .tmr-protection-main {
    align-items: flex-start;
    justify-content: center;
    align-items: center;
    gap: 4px;
  }

  .tmr-package-protection-container .tmr-toggle-btn {
    align-self: flex-end;
  }

  .tmr-package-protection-container .tmr-protection-checkbox {
    width: 16px;
    height: 16px;
  }

  .tmr-package-protection-container .tmr-protection-summary {
    font-size: calc(var(--protection-font-size) - 1px);
  }

  .tmr-package-protection-container .tmr-benefits-table th,
  .tmr-package-protection-container .tmr-benefits-table td {
    padding: 6px 4px;
    font-size: calc(var(--protection-font-size) - 4px);
  }

  .tmr-package-protection-container .tmr-modal-content {
    width: 95%;
    max-height: 90vh;
    margin: 20px;
  }

  .tmr-package-protection-container .tmr-modal-header {
    padding: 16px 20px 12px;
  }

  .tmr-package-protection-container .tmr-modal-title {
    font-size: 16px;
  }

  .tmr-package-protection-container .tmr-modal-body {
    padding: 20px;
  }

  .tmr-package-protection-container .tmr-modal-control {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .tmr-package-protection-container .tmr-modal-checkbox-label {
    gap: 8px;
  }

  .tmr-package-protection-container .tmr-modal-checkbox {
    width: 18px;
    height: 18px;
  }

  .tmr-package-protection-container .tmr-modal-label-text {
    font-size: var(--protection-font-size);
  }

  .tmr-package-protection-container .tmr-modal-price {
    font-size: var(--protection-font-size);
    align-self: flex-end;
  }

  .tmr-package-protection-container .tmr-feature-item {
    gap: 8px;
    margin-bottom: 12px;
  }

  .tmr-package-protection-container .tmr-modal-links {
    gap: 12px;
  }
}

@media (prefers-contrast: high) {
  .tmr-package-protection-container {
    border: 2px solid var(--protection-text);
  }

  .tmr-package-protection-container .tmr-protection-checkbox {
    border-width: 3px;
  }

  .tmr-package-protection-container .tmr-benefits-table th,
  .tmr-package-protection-container .tmr-benefits-table td {
    border: 2px solid var(--protection-text);
  }
}

.tmr-package-protection-container *:focus {
  outline: 2px solid var(--protection-accent);
  outline-offset: 2px;
}

.tmr-package-protection-container.tmr-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.tmr-package-protection-container.tmr-disabled .tmr-protection-checkbox {
  cursor: not-allowed;
}

.tmr-package-protection-container.tmr-loading {
  position: relative;
}

.tmr-package-protection-container.tmr-loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.tmr-price-loading .tmr-price-value {
  visibility: hidden;
  position: relative;
}

.tmr-price-loading .tmr-price-value::after {
  content: "";
  position: absolute;
  inset: 0;
  top: 3px;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-left-color: var(--protection-accent, #0073e6);
  border-radius: 50%;
  animation: tmrPriceSpin 0.8s linear infinite;
  visibility: visible;
}

@keyframes tmrPriceSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.tmr-protection-modal
  .tmr-modal-price-container.tmr-price-loading
  .tmr-price-value {
  visibility: hidden;
  position: relative;
}

.tmr-protection-modal
  .tmr-modal-price-container.tmr-price-loading
  .tmr-price-value::after {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-left-color: var(--protection-accent, #0073e6);
  border-radius: 50%;
  animation: tmrPriceSpin 0.8s linear infinite;
  visibility: visible;
}
