#campay-number-error{
	color:red;
	display:none;
}

/* Phone number field: +237 prefix joined to the number, like the CamPay shortcode payment window */
.campay-wc-phone {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin-top: 6px;
}
.campay-wc-phone__prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 15px;
    white-space: nowrap;
}
/* !important: beats ".row.css_accordion input" below (which hides the tab radios) and the theme checkout styles */
.campay-wc-phone input.campay-wc-phone__input {
    position: relative !important;
    z-index: 9 !important;
    flex: 1;
    min-width: 0;
    width: 100% !important; /* a percentage lets the field shrink on narrow screens */
    height: 48px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0 8px 8px 0 !important;
    background: #fff !important;
    color: #111827 !important;
    font-size: 17px !important;
    line-height: normal !important;
    opacity: 1 !important;
    box-shadow: none !important;
}
.campay-wc-phone input.campay-wc-phone__input::placeholder {
    color: #9ca3af;
}
.campay-wc-phone input.campay-wc-phone__input:focus {
    outline: none !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 3px rgb(29 78 216 / 20%) !important;
}

#wc-campay-cc-form{
	min-width: 0; /* fieldsets default to min-content, which widened the page on phones */
	max-width: 100%;
	padding: 0 !important;
}

/* Checkout logos: fixed height whatever the image size (!important: themes style payment method icons) */
.campay-wc-logos {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    vertical-align: middle;
}
.campay-wc-logos img.campay-wc-logo {
    display: block;
    float: none !important;
    width: auto !important;
    height: 32px !important;
    max-width: none !important;
    max-height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 4px;
    object-fit: contain;
}
.campay-wc-logos img.campay-wc-logo--card {
    height: 24px !important;
    max-height: 24px !important;
}

/* Payment processing window, shown while the customer confirms on their phone */
.campay-wc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000; /* above the WooCommerce checkout loading overlay */
    background: rgba(17, 24, 39, .6);
}
/* Fixed to the viewport, so it stays centered whatever the page scroll or theme layout */
.campay-wc-modal__dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 440px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 28px 24px 24px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    color: #111827;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    transform: translate(-50%, -50%);
}
.campay-wc-modal__spinner {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border: 4px solid #e5e7eb;
    border-top-color: #1d4ed8;
    border-radius: 50%;
    animation: campay-wc-spin .8s linear infinite;
}
.campay-wc-modal__title {
    margin: 0 0 8px !important;
    color: #111827 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    text-transform: none !important;
}
.campay-wc-modal__info {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #374151;
    font-size: 15px;
}
.campay-wc-modal [hidden] {
    display: none !important;
}
.campay-wc-modal__hint {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}
@keyframes campay-wc-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .campay-wc-modal__spinner { animation-duration: 2s; }
}

#pay_with_visacard {
    max-width: 100%;
    white-space: normal;
}

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 80%;
    overflow: hidden;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    right: 0;
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.cp_payment_waiting{
    width:350px;
    margin:auto;
}
.cp_payment_info{
    color:red;
    text-align:center;
    padding:10px 0;
}

/*accordian*/
.row.css_accordion input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.row.css_accordion {
  display: flex;
  position : relative;
}
.row.css_accordion .col {
  min-width: 0; /* flex items default to their content width */
  flex: 1;
}
/* spacing between columns only: with a single column, :last-child pushed the tabs off the screen */
.row.css_accordion .col + .col {
  margin-left: 1em;
}

/* Accordion styles */
.row.css_accordion .tabs {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.5);
}

.row.css_accordion .tab {
  width: 100%;
  color: white;
  overflow: hidden;
}
.row.css_accordion .tab-label {
  display: flex;
  justify-content: space-between;
  padding: 1em;
  background: #2c3e50;
  font-weight: bold;
  cursor: pointer;
  color: #fff !important;
  /* Icon */
}
.row.css_accordion .tab-label:hover {
  background: #1a252f;
}
.row.css_accordion .tab-label::after {
  content: "❯";
  width: 1em;
  height: 1em;
  text-align: center;
  transition: all 0.35s;
}
.row.css_accordion .tab-content {
  max-height: 0;
  padding: 0 1em;
  color: #2c3e50;
  background: white;
  transition: all 0.35s;
}
.row.css_accordion .tab-close {
  display: flex;
  justify-content: flex-end;
  padding: 1em;
  font-size: 0.75em;
  background: #2c3e50;
  cursor: pointer;
}
.row.css_accordion .tab-close:hover {
  background: #1a252f;
}

.row.css_accordion input:checked + .tab-label {
  background: #1a252f;
}
.row.css_accordion input:checked + .tab-label::after {
  transform: rotate(90deg);
}
.row.css_accordion input:checked ~ .tab-content {
  max-height: 100vh;
  padding: 1em;
}