/* Version: 1.0.16 */

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('https://cdn.postnl.nl/fonts/Hanken-Grotesk.woff2') format('woff2');
}

.button--plugin-postnl-fast-checkout-container .action.primary.postnl-fastcheckout-button,
.button--plugin-postnl-fast-checkout-container .action-primary.postnl-fastcheckout-button,
.postnl-primary-button {
  background-color: #ff6200 !important;
  background-image: none !important;
  color: white !important;
  border: none !important;
  padding: 10px 20px !important;
  font-size: 16px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: background-color 0.3s !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-family: 'Hanken Grotesk', sans-serif !important;
  font-weight: 600 !important;
  width: 100% !important;
  min-width: 300px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  line-height: normal !important;
  -webkit-text-size-adjust: none !important;
  box-shadow: none !important;
}

.button--plugin-postnl-fast-checkout-container .action.primary.postnl-fastcheckout-button:hover,
.button--plugin-postnl-fast-checkout-container .action-primary.postnl-fastcheckout-button:hover,
.postnl-primary-button:hover {
  background-color: #e55a00 !important;
  border: none !important;
}

.button--plugin-postnl-fast-checkout-container .action.primary.postnl-fastcheckout-button:focus,
.button--plugin-postnl-fast-checkout-container .action-primary.postnl-fastcheckout-button:focus,
.postnl-primary-button:focus {
  background-color: #ff6200 !important;
  border: none !important;
  box-shadow: none !important;
}

.button--plugin-postnl-fast-checkout-container .action.primary.postnl-fastcheckout-button:active,
.button--plugin-postnl-fast-checkout-container .action-primary.postnl-fastcheckout-button:active,
.postnl-primary-button:active {
  background-color: #e55a00 !important;
  border: none !important;
}

.postnl-modal .postnl-primary-button {
  min-width: 200px !important;
  max-width: 350px !important;
  margin: 0 auto !important;
}

.postnl-info-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 5px;
  font-size: 0.8em;
  gap: 4px;
}

.postnl-info-text hr {
  width: 100%;
}

.postnl-info-text span {
  color: #505050;
  font-weight: 500;
  text-wrap: nowrap;
  text-decoration: underline;
  cursor: pointer;
}

.postnl-modal h2,
h3,
li,
span,
p {
  font-family: 'Hanken Grotesk', sans-serif;
}

.postnl-modal a {
  text-decoration: none;
}

.postnl-fast-checkout-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

button svg {
  vertical-align: middle;
  margin-right: 8px;
}

#info-icon {
  cursor: pointer;
}

.postnl-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px;
  box-sizing: border-box;
}

.postnl-modal-content-wrapper {
  background-color: #ffffff;
  border-radius: 12px;
  width: 90%;
  min-width: 320px;
  max-width: 850px;
  margin: auto;
  max-height: 90vh;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.postnl-top-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #000;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}

.postnl-top-close:hover,
.postnl-top-close:focus {
  color: #00295a;
}

.postnl-modal-scroll-container {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.postnl-modal-footer {
  padding: 24px 32px;
  border-top: 1px solid #e6e6e6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.postnl-modal-footer .postnl-primary-button {
  max-width: 350px;
}

.postnl-modal-footer .postnl-legal-text {
  text-align: center;
  margin-top: 4px;
}

.postnl-modal-content {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 0;
}

.postnl-modal-image-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
}

.postnl-modal-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 400px;
}

.postnl-modal-header {
  padding: 54px;
  display: flex;
  flex-direction: column;
  min-width: 320px;
  max-width: 500px;
  justify-content: space-between;
}

.postnl-modal-header-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.postnl-header-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.postnl-header-title h2 {
  color: #000;
  font-size: 1.8em;
  font-weight: 600;
  margin: 0;
  max-width: 90%;
}

.postnl-header-description {
  color: #555;
  font-size: 1.1em;
  margin: 0;
  line-height: 1.4;
}

.postnl-header-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 60px;
}

.postnl-secondary-button {
  background-color: transparent;
  color: #6161ff;
  font-weight: bold;
}

.postnl-secondary-button:hover {
  background-color: transparent;
  cursor: pointer;
}

.postnl-secondary-button svg {
  transition: transform 0.3s ease;
  vertical-align: middle;
}

.postnl-secondary-button.expanded svg {
  transform: rotate(90deg);
}

.close {
  color: #000;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover,
.close:focus {
  color: #00295a;
  text-decoration: none;
}

.postnl-accordion-content {
  display: none;
  padding: 14px 32px;
  border-top: 1px solid #e6e6e6;
}

.postnl-accordion-content.expanded {
  display: block;
}

.postnl-accordion-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e6e6e6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.postnl-accordion-footer .postnl-primary-button {
  max-width: 350px;
}

.postnl-accordion-footer .postnl-legal-text {
  text-align: center;
  margin-top: 4px;
}

.postnl-accordion-section {
  margin-bottom: 24px;
}

.postnl-accordion-section h2 {
  color: #000;
  font-size: 1.4em;
  margin-bottom: 12px;
  padding-top: 12px;
  font-weight: 600;
  text-align: center;
}

.postnl-accordion-section h3 {
  color: #00295a;
  font-size: 1.2em;
  margin-bottom: 8px;
  font-weight: 600;
  text-align: center;
}

.postnl-accordion-section p {
  color: #505050;
  font-size: 1em;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.postnl-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.postnl-benefit-item {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 16px;
}

.postnl-benefit-item img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  align-self: center;
}

.postnl-benefit-item h3 {
  color: #00295a;
  font-size: 1.2em;
  margin: 0;
  text-align: center;
}

.postnl-benefit-item p {
  color: #505050;
  font-size: 1em;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.postnl-legal-text {
  color: #505050;
  font-weight: 500;
  font-size: 0.8em;
}

.postnl-legal-text a {
  color: #505050;
  text-decoration: none;
  cursor: pointer;
  text-decoration: underline;
}

.postnl-legal-text a:hover {
  text-decoration: underline;
}

.postnl-header-title h2 .highlight {
  color: #d83d00;
}

.postnl-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-top: 3px solid #ff6200;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.postnl-visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: 0;
}

@media (max-width: 900px) {
  .postnl-modal {
    padding: 0;
  }
  .postnl-modal-content-wrapper {
    margin: 0;
    width: 100%;
    border-radius: 0;
    max-width: 100%;
  }
  .postnl-modal-content {
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
  }
  .postnl-modal-image-wrapper {
    width: 100%;
    max-height: 200px;
    padding: 16px;
    box-sizing: border-box;
  }
  .postnl-modal-image-wrapper img {
    max-height: 200px;
  }
  .postnl-modal-header {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 16px;
    box-sizing: border-box;
  }
  button {
    min-width: 0;
    width: 100%;
  }
  .postnl-header-title h2 {
    font-size: 1.4em;
    width: 100%;
  }
  .postnl-header-description {
    font-size: 1em;
  }
  .postnl-header-actions {
    margin-top: 20px;
    width: 100%;
  }
  .postnl-benefits-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
  }
  .postnl-accordion-section h2 {
    font-size: 1.2em;
    text-align: center;
  }
  .postnl-accordion-content {
    padding: 14px 16px;
    box-sizing: border-box;
    width: 100%;
  }
  .postnl-accordion-footer {
    padding: 16px;
    margin-top: 24px;
    width: 100%;
    box-sizing: border-box;
  }
  .postnl-benefit-item {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .postnl-modal-content-wrapper {
    width: 95%;
    max-height: 95vh;
  }
  .postnl-modal-content {
    flex-direction: column;
  }
  .postnl-modal-image-wrapper {
    width: 100%;
    max-height: 200px;
    padding: 16px;
  }
  .postnl-modal-image-wrapper img {
    max-height: 200px;
  }
  .postnl-modal-header {
    width: 100%;
    padding: 16px;
  }
  .postnl-header-title h2 {
    font-size: 1.4em;
  }
  .postnl-header-description {
    font-size: 1em;
  }
  .postnl-header-actions {
    margin-top: 20px;
  }
  .postnl-benefits-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .postnl-accordion-section h2 {
    font-size: 1.2em;
  }
  .postnl-accordion-content {
    max-height: calc(95vh - 300px);
  }
}

@media (max-width: 480px) {
  .postnl-modal-content-wrapper {
    width: 100%;
  }
  .postnl-header-title h2 {
    font-size: 1.2em;
  }
  button {
    padding: 10px 16px;
    font-size: 14px;
  }
  .postnl-modal-scroll-container {
    width: 100%;
    overflow-x: hidden;
  }
}

/* Responsive: remove min-width for smaller screens */
@media (max-width: 1024px) {
  .button--plugin-postnl-fast-checkout-container .postnl-fastcheckout-button,
  .button--plugin-postnl-fast-checkout-container .action.primary.postnl-fastcheckout-button,
  .button--plugin-postnl-fast-checkout-container .action-primary.postnl-fastcheckout-button {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 600px) {
  .postnl-modal-content-wrapper {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    border-radius: 0;
  }
  .postnl-modal-content {
    flex-direction: column;
  }
}
