/* Added Modal Styles */
.wpb-apt-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wpb-apt-modal.active {
  display: block;
  opacity: 1;
}

.wpb-apt-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.wpb-apt-modal-content {
  position: relative;
  max-width: 700px;
  max-height: 90vh;
  margin: 5vh auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.wpb-apt-modal.active .wpb-apt-modal-content {
  transform: scale(1);
}

.wpb-apt-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  z-index: 10;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wpb-apt-modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

.wpb-apt-modal-header {
  padding: 30px 30px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.wpb-apt-modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.wpb-apt-modal-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}

.wpb-apt-modal-body p {
  margin: 0 0 15px;
  line-height: 1.6;
}

.wpb-apt-modal-body ul,
.wpb-apt-modal-body ol {
  margin: 0 0 15px;
  padding-left: 25px;
}

.wpb-apt-modal-body li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.wpb-pricing-content hr {
	width: 80%;
}

button.button {
	cursor: pointer;
}
.wpb-pricing-button {
	transition: all .5s;
}

/* Modal responsive */
@media (max-width: 768px) {
  .wpb-apt-modal-content {
    max-width: 95%;
    margin: 2.5vh auto;
    max-height: 95vh;
  }

  .wpb-apt-modal-header {
    padding: 20px 20px 15px;
  }

  .wpb-apt-modal-header h3 {
    font-size: 20px;
    padding-right: 30px;
  }

  .wpb-apt-modal-body {
    padding: 20px;
  }

  .wpb-apt-modal-close {
    width: 32px;
    height: 32px;
    font-size: 20px;
    top: 12px;
    right: 12px;
  }
}

/* Prevent body scroll when modal is open */
body.wpb-apt-modal-open {
  overflow: hidden;
}

.wpb-pricing-tables-container {
	display: flex;
	margin-top: 2rem;
	margin-bottom: 2rem;
}
.wpb-pricing-tables-container.gap-small {
	gap: 20px;
}
.wpb-pricing-tables-container.gap-medium {
	gap: 30px;
}
.wpb-pricing-tables-container.gap-large {
	gap: 40px;
}

.wpb-pricing-table {
  position: relative;
}
.wpb-pricing-table .amount {
	font-size: 200%;
	padding: 0 10px 0 2px;
}

/* Pricing Ribbon */
.wpb-pricing-ribbon {
  position: absolute;
  z-index: 2;
  padding: 8px 40px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
}

/* Updated ribbon positioning with diagonal corners and proper rotation angles */

.wpb-pricing-ribbon.ribbon-top-left {
  --f: .5em; /* control the folded part*/
  --r: .8em; /* control the ribbon shape */
  
  position: absolute;
  left: 20px;
  top: calc(-1*var(--f));
  padding: .8em .4em .4em;
  background: #BF4D28;
  border-left: var(--f) solid #0005;
  border-bottom: var(--r) solid #0000;
  clip-path: polygon(var(--f) 0,100% 0,100% calc(100% - var(--r)),calc(50% + var(--f)/2) 100%, var(--f) calc(100% - var(--r)),var(--f) var(--f),0 var(--f));
}

.wpb-pricing-ribbon.ribbon-top-right {
  --f: .5em; /* control the folded part*/
  --r: .8em; /* control the ribbon shape */
  
  position: absolute;
  right: 20px;
  top: calc(-1*var(--f));
  padding: .8em .4em .4em;
  background: #C8CF02;
  border-right: var(--f) solid #0005;
  border-bottom: var(--r) solid #0000;
  clip-path: polygon(calc(100% - var(--f)) 0,0 0,0 100%,calc(50% - var(--f)/2) calc(100% - var(--r)),calc(100% - var(--f)) 100%,calc(100% - var(--f)) var(--f),100% var(--f));
}



@media (max-width: 992px) {
	
	.wpb-pricing-tables-container {
		flex-direction: column;
	}
}
