.ovi-mgl-shortcode {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #fafafa);
}

.ovi-mgl-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ovi-mgl-step[hidden] {
  display: none !important;
}

.ovi-mgl-step-summary {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px dashed #c9d6e6;
  border-radius: 10px;
  background: #f6f9fd;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.35;
}

.ovi-mgl-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.ovi-mgl-step-actions--single {
  justify-content: flex-end;
}

.ovi-mgl-fieldset {
  border: 1px solid #eceff3;
  border-radius: 14px;
  padding: 14px;
  margin: 0;
  background: #fff;
}

.ovi-mgl-fieldset legend {
  font-weight: 600;
  padding: 0 6px;
}

.ovi-mgl-product-name {
  margin: 0 0 10px;
  font-weight: 600;
}

.ovi-mgl-cards-grid,
.ovi-mgl-addons-grid,
.ovi-mgl-addon-variations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.ovi-mgl-card {
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ovi-mgl-card:hover {
  border-color: #cdd6e0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.ovi-mgl-card-input {
  margin: 10px;
}

.ovi-mgl-card-input:checked + .ovi-mgl-card-media .ovi-mgl-image {
  box-shadow: 0 0 0 2px #2271b1 inset;
}

.ovi-mgl-card-input:checked + .ovi-mgl-card-media + .ovi-mgl-card-content {
  background: #f0f7ff;
}

.ovi-mgl-card-media {
  display: block;
  padding: 8px 10px 0;
}

.ovi-mgl-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fafc;
}

.ovi-mgl-card-content {
  display: block;
  padding: 10px 12px 12px;
}

.ovi-mgl-card-title {
  display: block;
  font-size: 0.95rem;
  line-height: 1.3;
}

.ovi-mgl-card--mini .ovi-mgl-card-title {
  font-size: 0.9rem;
}

.ovi-mgl-card--main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 44px 10px 10px;
}

.ovi-mgl-card--main .ovi-mgl-card-input {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
}

.ovi-mgl-card--main .ovi-mgl-card-media {
  width: 88px;
  min-width: 88px;
  padding: 0;
}

.ovi-mgl-card--main .ovi-mgl-card-content {
  flex: 1;
  padding: 0;
}

.ovi-mgl-card--main .ovi-mgl-card-title {
  margin-bottom: 2px;
}

.ovi-mgl-more-btn {
  margin-top: 6px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #0a4b78;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.ovi-mgl-more-btn:hover {
  color: #083a5f;
}

.ovi-mgl-duration-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ovi-mgl-duration-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9dde3;
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
}

.ovi-mgl-duration-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ovi-mgl-duration-monthly {
  font-size: 0.78rem;
  line-height: 1.2;
  color: #465467;
}

.ovi-mgl-duration-card input:checked + .ovi-mgl-duration-content {
  color: #0a4b78;
}

.ovi-mgl-duration-card input:checked + .ovi-mgl-duration-content .ovi-mgl-duration-monthly {
  color: #0a4b78;
}

.ovi-mgl-monthly {
  display: block;
  margin-top: 4px;
  font-size: 0.95em;
  font-weight: 700;
  color: #0a4b78;
}

.ovi-mgl-price {
  display: block;
  font-size: 0.9em;
  color: #465467;
  margin-top: 4px;
}

.ovi-mgl-addon-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  padding: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ovi-mgl-addon-card:hover {
  border-color: #cdd6e0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.ovi-mgl-addon-card.is-selected {
  border-color: #2271b1;
  background: #f0f7ff;
  box-shadow: 0 0 0 1px #2271b1 inset, 0 8px 24px rgba(15, 23, 42, 0.08);
}

.ovi-mgl-addon-main {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 600;
  cursor: pointer;
}

.ovi-mgl-addon-main .js-ovi-mgl-addon-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.ovi-mgl-addon-card.is-selected .ovi-mgl-addon-main-media .ovi-mgl-image {
  box-shadow: 0 0 0 2px #2271b1 inset;
}

.ovi-mgl-addon-main-media {
  width: 86px;
  min-width: 86px;
}

.ovi-mgl-addon-main-media .ovi-mgl-image {
  border-radius: 10px;
}

.ovi-mgl-addon-main-content {
  display: block;
}

.ovi-mgl-addon-actions {
  margin: 6px 0 10px;
}

.ovi-mgl-addon-fields {
  display: grid;
  gap: 8px;
}

.ovi-mgl-addon-subtitle {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.js-ovi-mgl-addon-variation-select {
  width: 100%;
}

.ovi-mgl-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.ovi-mgl-qty-input {
  width: 90px;
}

.ovi-mgl-message {
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.ovi-mgl-message--error {
  background: #fff1f0;
  border: 1px solid #ffccc7;
  color: #a8071a;
}

.ovi-mgl-message--notice {
  background: #e6f4ff;
  border: 1px solid #91caff;
  color: #0958d9;
}

.ovi-mgl-submit {
  font-size: 16px;
  padding: 8px 18px;
}

.ovi-mgl-modal-open {
  overflow: hidden;
}

.ovi-mgl-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ovi-mgl-modal[hidden] {
  display: none !important;
}

.ovi-mgl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.ovi-mgl-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(840px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid #d9dee8;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

.ovi-mgl-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e8edf3;
}

.ovi-mgl-modal-header h2 {
  margin: 0;
  font-size: 1rem;
}

.ovi-mgl-modal-close-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: #334155;
}

.ovi-mgl-modal-body {
  padding: 16px;
}

.ovi-mgl-modal-body h3 {
  margin-top: 0;
}

@media (max-width: 768px) {
  .ovi-mgl-cards-grid,
  .ovi-mgl-addons-grid,
  .ovi-mgl-addon-variations-grid {
    grid-template-columns: 1fr;
  }
}
