.dssem-wrapper {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  color: #1f2937;
}

.dssem-heading {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.dssem-summary {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.dssem-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.dssem-summary-row + .dssem-summary-row {
  margin-top: 8px;
}

.dssem-field-group {
  margin-bottom: 14px;
}

.dssem-field-group label {
  display: block;
  font-weight: 400;
  margin-bottom: 4px;
  font-size: 0.93rem;
  line-height: 1.15;
  color: #f5f5f5;
  letter-spacing: -0.2px;
}

.dssem-field-group input.dssem-input-error {
  border-color: #e21616 !important;
  box-shadow: 0px 2px 4px rgba(226, 22, 22, 0.5), 0px 1px 6px rgba(226, 22, 22, 0.25), 0 0 0 3px rgba(226, 22, 22, 0.25), 0 1px 1px 0 rgba(255, 255, 255, 0.12);
}

.dssem-field-group input {
  width: 100%;
  height: 44.39px !important;
  background-color: #111111 !important;
  border: 1px solid #292929 !important;
  border-radius: 10px !important;
  padding: 12px !important;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5), 0px 1px 6px rgba(0, 0, 0, 0.25);
  margin-bottom: 12px;
  color: #f5f5f5 !important;
  font-weight: 400 !important;
  font-size: 0.93rem !important;
}

.dssem-field-group input:focus {
  outline: 0px !important;
  border-color: #d4a15d !important;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5), 0px 1px 6px rgba(0, 0, 0, 0.25), 0 0 0 3px hsla(34, 58%, 60%, 25%), 0 1px 1px 0 rgba(255, 255, 255, 0.12);
}

#dssem-payment-element {
  min-height: 56px;
  padding: 12px 0;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
}

.dssem-message {
  min-height: auto !important;
  margin: 10px 0 16px;
  font-size: 14px;
}

.dssem-message.is-error {
  color: #e21616 !important;
}

.dssem-message.is-success {
  color: #166534 !important;
}

.dssem-message.is-info {
  color: #1d4ed8 !important;
}

.dssem-submit-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.dssem-submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.dssem-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: dssemSpin 0.8s linear infinite;
}

.dssem-submit-button.is-loading .dssem-spinner {
  display: inline-block;
}

@keyframes dssemSpin {
  to { transform: rotate(360deg); }
}


html.dssem-modal-open,
body.dssem-modal-open {
  overflow: hidden;
}

.dssem-plugin-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.dssem-plugin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.dssem-plugin-modal__dialog {
  position: relative;
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 100px);
  overflow: auto;
  margin: 12px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 70px rgba(0,0,0,0.25);
  padding: 22px;
  scrollbar-width: thin;
  scrollbar-color: #ECC06C transparent;
}

.dssem-plugin-modal__dialog::-webkit-scrollbar {
  width: 6px;
}

.dssem-plugin-modal__dialog::-webkit-scrollbar-track {
  background: transparent;
}

.dssem-plugin-modal__dialog::-webkit-scrollbar-thumb {
  background-color: #ECC06C;
  border-radius: 10px;
}

.dssem-plugin-modal__dialog::-webkit-scrollbar-thumb:hover {
  background-color: #d9aa4f;
}

.dssem-plugin-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.dssem-plugin-modal__body {
  padding-top: 10px;
}

@media (min-width: 768px) {
  .dssem-plugin-modal__dialog {
    margin: 32px auto;
  }
}


.dssem-success-view {
  text-align: center;
  padding: 18px 8px 6px;
}

.dssem-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  background: #ecfdf3;
  color: #039855;
}

.dssem-success-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
}

.dssem-success-text {
  margin: 0 0 18px;
  color: #475467;
}

.dssem-success-button {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  background: #111827;
  color: #fff;
  font-weight: 600;
}


/* v13 UI overrides */
.dssem-plugin-modal__backdrop {
  cursor: default;
}

.dssem-plugin-modal__dialog {
  width: min(520px, calc(100vw - 24px));
}

.dssem-heading {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.dssem-desc {
  margin: 0 0 16px;
  color: #667085;
  font-size: 14px;
}

#dssem-payment-form {
  display: block;
}

#dssem-payment-element {
  margin: 0 0 12px;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.dssem-payment-element-wrap,
.dssem-field-group {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

#dssem_customer_name,
#dssem_customer_email,
label[for="dssem_customer_name"],
label[for="dssem_customer_email"] {
  
}


/* v16 dark theme force */
.dssem-plugin-modal__dialog {
  background: #111111 !important;
  color: #f5f5f5 !important;
  border: 1px solid rgba(212, 161, 93, 0.28) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55) !important;
}

.dssem-plugin-modal__body,
#dssem-payment-view,
#dssem-payment-form,
#dssem-payment-root,
.dssem-wrapper {
  background: transparent !important;
  color: #f5f5f5 !important;
}

.dssem-plugin-modal__close {
  background: #1a1a1a !important;
  color: #f5f5f5 !important;
  border: 1px solid rgba(212, 161, 93, 0.25) !important;
}

.dssem-heading {
  color: #f5f5f5 !important;
}

.dssem-desc {
  color: #d0d0d0 !important;
}

.dssem-summary,
.dssem-summary-row,
.dssem-message {
  background: transparent !important;
  color: #d0d0d0 !important;
  border-color: rgba(212, 161, 93, 0.16) !important;
}

#dssem-payment-element {
  background: transparent !important;
}

.dssem-submit-button {
  background: #d4a15d !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 100px !important;
}

.dssem-submit-button:hover {
  filter: brightness(1.04);
}

.dssem-success-view,
.dssem-success-title,
.dssem-success-text {
  background: transparent !important;
  color: #f5f5f5 !important;
}


.dssem-payment-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 140px;
  color: #d0d0d0;
}

.dssem-payment-loader__spinner {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 3px solid rgba(212, 161, 93, 0.22);
  border-top-color: #d4a15d;
  animation: dssem-spin .8s linear infinite;
}

.dssem-payment-loader__text {
  font-size: 14px;
}

@keyframes dssem-spin {
  to { transform: rotate(360deg); }
}


#dssem-payment-loader {
  display: flex;
}

.dssem-payment-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  width: 100%;
  color: #d0d0d0;
}


.dssem-custom-summary {
  margin-bottom: 15px;
  color: #f5f5f5;
}

.dssem-custom-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
}

.dssem-custom-summary__row.small {
  font-size: 14px;
  color: #cfcfcf;
}

.dssem-custom-summary__row.total {
  font-size: 16px;
}

.dssem-custom-summary__img {
  width: 90px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
}

.dssem-custom-summary__content {
  flex: 1;
}

.dssem-custom-summary__title {
  font-weight: 600;
  line-height: 1.3;
}

.dssem-custom-summary__desc {
  font-size: 13px;
  color: #aaa;
}

.dssem-custom-summary__price {
  font-weight: 600;
}

.dssem-custom-summary__line {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}


.dssem-custom-summary {
  margin: 5px 0 18px;
  color: #f5f5f5;
}

.dssem-custom-summary__desc2 {
  font-size: 13px;
  line-height: 1.35;
  color: #a6a6a6;
  margin-top: 3px;
}

.dssem-custom-summary__line {
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.dssem-trust-icon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 260px;
  margin: -8px auto 20px;
}

@media (max-width: 640px) {
  .dssem-custom-product-data .dssem-custom-summary__price {
	display: none;
  }
  .dssem-plugin-modal__dialog {
	width: 80%;
  }
  .dssem-wrapper {
	padding: 0;
  }
  .dssem-custom-product-data {
    flex-direction: column;
  }
}
