@import url(https://fonts.googleapis.com/css?family=Lato:400,300,700);

body,
html {
    height: 100%;
    margin: 0;
    font-family: Lato, sans-serif;
}

h2 {
    margin-bottom: 0;
    margin-top: 25px;
    text-align: center;
    font-weight: 200;
    font-size: 1.2rem;
}

.container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(#c9e5e9, #ccddf9);
    box-sizing: border-box;
}

.window {
    height: auto;
    width: 800px;
    background: #fff;
    display: flex;
    flex-direction: row;
    box-shadow: 0px 15px 50px 10px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    overflow: hidden;
    max-width: 100%;
}

.order-info {
    width: 50%;
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    background: #fff;
}

.order-info-content {
    flex-grow: 1;
}

.order-table {
    width: 100%;
    position: relative;
}

.order-table td:first-of-type {
    width: 25%;
}

.order-table td:last-of-type {
    vertical-align: top;
    padding-left: 25px;
}

.full-width {
    width: 100%;
    max-width: 100%;
}

.line {
    height: 1px;
    width: 100%;
    margin: 10px 0;
    background: #ddd;
}

.price {
    color: black;
    font-weight: bold;
    margin-top: 10px;
    font-size: 1.1rem;
}

.total {
    margin-top: 25px;
    font-size: 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dense {
    line-height: 1.2em;
    font-size: 1rem;
    font-weight: normal;
}

.credit-info {
    background: #4488dd;
    width: 50%;
    color: #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 0.9rem;
    box-sizing: border-box;
    padding: 25px;
}

.credit-info-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    font-weight: 600;
    margin-top: 25px;
}

.input-field {
    background: rgba(255, 255, 255, 0.1);
    color: #000000;
    border: none;
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 500;
    box-sizing: border-box;
    margin: 5px 0 15px 0;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.half-input-table {
    width: 100%;
    border-collapse: collapse;
}

.half-input-table td:first-of-type {
    border-right: 10px solid #4488dd;
    width: 50%;
    padding-right: 10px;
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    text-align: center;
    padding: 8px;
    cursor: pointer;
    position: relative;
    width: 100%;
}

.dropdown-btn:after {
    content: '\25BE';
    right: 8px;
    position: absolute;
}

.dropdown-select {
    display: none;
    position: absolute;
    background: #77aaee;
    text-align: left;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    width: 90%;
    left: 2px;
    margin-top: 2px;
    z-index: 10;
}

.dropdown-select.visible {
    display: block;
}

ul {
    margin: 0;
    padding: 0;
}

ul li {
    list-style: none;
    padding: 10px;
    cursor: pointer;
}

ul li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.credit-card-image {
    display: block;
    max-height: 80px;
    margin: 35px auto 15px auto;
}

.pay-btn {
    border: none;
    background: #22b877;
    line-height: 2em;
    border-radius: 10px;
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    margin-top: 20px;
}

.pay-btn:hover {
    background: #22a877;
    color: #eee;
    transition: all 0.2s ease;
}

/* 🔧 MOBILE STYLES */
@media (max-width: 600px) {

    .container {
        align-items: flex-start;
        /* ✅ Push content to the top */
    }


    .window {
        flex-direction: column;
        width: 100%;
        border-radius: 0;
    }

    .credit-info {
        order: -1;
        width: 100%;
        border-radius: 0;
        padding-bottom: 30px;
    }

    .order-info {
        order: 1;
        width: 100%;
        padding: 20px;
        border-radius: 0;
    }

    .credit-card-image {
        margin-top: 10px;
    }

    .pay-btn {
        border-radius: 10px;
        position: relative;
        bottom: auto;
        margin-top: 20px;
    }

    .price,
    .total {
        position: relative;
        right: auto;
        bottom: auto;
        text-align: left;
        margin-top: 10px;
    }

    .order-table td {
        /* display: block; */
        width: 100%;
        padding: 10px 0;
    }

    .order-table td:first-of-type {
        text-align: center;
        padding: 0;
    }

    .order-table td:last-of-type {
        padding: 10px 0 0 10px;
        text-align: left;
    }
}

.card-logos {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.card-logos img {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.card-logos img:hover {
  opacity: 1;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.loading-content {
  text-align: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #22b877;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

