@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --font-main: 'Manrope', sans-serif;
  
  /* Brand colors matching live irispay.bg */
  --color-primary: #091942;
  --color-primary-light: #1e293b;
  --color-cyan: #00c3f8;
  --color-cyan-hover: #00b0e0;
  --color-accent: #f7971d;
  --color-accent-hover: #e08316;
  
  /* Background colors */
  --color-bg-main: #ffffff;
  --color-card-bg: #ffffff;
  --color-sidebar-bg: #f8fafc;
  
  /* Text colors */
  --color-text-dark: #091942;
  --color-text-muted: #475569;
  --color-text-light: #ffffff;
  
  /* Border colors */
  --color-border: #e2e8f0;
  --color-border-active: #00c3f8;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px -15px rgba(0, 195, 248, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-main);
  color: var(--color-text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  color: var(--color-primary);
}

a {
  color: var(--color-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-primary);
}

/* Floating Top-Right Language selector (No header) */
.floating-lang-selector {
  position: absolute;
  top: 2rem;
  right: 5%;
  z-index: 1000;
}

.language-selector {
  position: relative;
  display: inline-block;
}

.language-btn {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.language-btn:hover {
  border-color: var(--color-cyan);
  box-shadow: var(--shadow-md);
}

.language-btn svg {
  width: 10px;
  height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform var(--transition-fast);
}

.language-btn--open svg {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  list-style: none;
  min-width: 110px;
  display: none;
  z-index: 110;
  overflow: hidden;
}

.language-dropdown--open {
  display: block;
}

.language-item a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  color: var(--color-text-dark);
  font-weight: 600;
  font-size: 0.85rem;
}
.language-item a:hover {
  background-color: #f1f5f9;
  color: var(--color-cyan);
}

.lang-flag-mini {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
}

/* Primary Cyan Action Button */
.btn--cyan {
  background-color: var(--color-cyan);
  color: #ffffff;
  padding: 0.8rem 2.2rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0, 195, 248, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.btn--cyan:hover {
  background-color: var(--color-cyan-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 195, 248, 0.45);
}

/* Homepage Hero Section - Clean Light Mesh Gradient */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 5rem 5% 4rem;
  background-color: #ffffff;
  background-image: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  width: 100%;
  max-width: 1360px;
  z-index: 2;
  align-items: center;
}

.hero__content {
  text-align: left;
}

/* Compact Logo, Title & Subtitle sizing */
.hero__logo {
  display: none !important;
}

.hero__title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 1rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.hero__description {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.55;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: 1.25rem;
}

/* WIDENED PAYMENT WIDGET CONTAINER (940px max-width & Gradient Border) */
.demo-widget-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.payment-widget {
  background: linear-gradient(#ffffff, #ffffff) padding-box,
              linear-gradient(135deg, #f7971d 0%, #00c3f8 100%) border-box;
  border: 2.5px solid transparent;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 940px;
  min-height: 540px;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  color: var(--color-text-dark);
  position: relative;
  transition: all var(--transition-normal);
}

/* Reduced E-Commerce Product Sidebar Width (260px) */
.widget-sidebar {
  width: 260px;
  flex-shrink: 0;
  background-color: var(--color-sidebar-bg);
  border-right: 1px solid var(--color-border);
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.widget-sidebar__store-header {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.widget-sidebar__store-badge {
  background-color: rgba(0, 195, 248, 0.12);
  color: #0093be;
  padding: 0.12rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
}

.widget-sidebar__product-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.widget-sidebar__product-img-box {
  width: 130px;
  height: 130px;
  border-radius: 0.75rem;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  transition: transform var(--transition-fast);
}
.widget-sidebar__product-img-box:hover {
  transform: scale(1.03);
}

.widget-sidebar__product-img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.widget-sidebar__product-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 0.2rem;
}

.widget-sidebar__product-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-align: center;
}

.widget-sidebar__breakdown {
  margin-top: auto;
  border-top: 1px dashed var(--color-border);
  padding-top: 1.1rem;
}

.widget-sidebar__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 0.45rem;
}

.widget-sidebar__row--total {
  margin-top: 0.65rem;
  border-top: 1px solid var(--color-border);
  padding-top: 0.65rem;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 0;
}

.widget-sidebar__mobile-summary {
  display: none;
}

/* Expanded Checkout Content Panel (Right Panel) */
.widget-main {
  flex: 1;
  background-color: var(--color-card-bg);
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

.widget-main--dark {
  background-color: #1a212d !important;
  color: #ffffff !important;
}

.widget-main--dark .widget-summary-bar {
  background-color: #151a24 !important;
  border-bottom-color: #2e3b4e !important;
}

.widget-main--dark .widget-summary-bar__merchant {
  color: #ffffff !important;
}

.widget-main--dark .widget-summary-bar__amount {
  color: #22d3ee !important;
}

.widget-summary-bar {
  background-color: var(--color-card-bg);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  gap: 1.5rem;
}

.widget-summary-bar__merchant-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.widget-summary-bar__merchant {
  font-weight: 700;
  color: var(--color-primary);
}

.widget-summary-bar__merchant-logo {
  height: 20px;
  width: auto;
}

.widget-summary-bar__amount {
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--color-primary);
  white-space: nowrap;
}

.widget-content {
  padding: 1.75rem 2.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.widget-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--color-primary);
  text-align: left;
}

.widget-main--dark .widget-title {
  color: #ffffff !important;
}

.widget-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: -0.4rem;
  margin-bottom: 1.35rem;
  line-height: 1.5;
  text-align: left;
}

.widget-main--dark .widget-subtitle {
  color: #94a3b8 !important;
}

.checkout-methods {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.method-card {
  display: flex;
  align-items: center;
  padding: 0.95rem 1.35rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  background-color: white;
  user-select: none;
}

.method-card:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

.method-card--selected {
  border-color: var(--color-cyan);
  background-color: rgba(0, 195, 248, 0.04);
}

.method-card--iris {
  border: 1.5px dashed rgba(247, 151, 29, 0.6);
}

.method-card--iris.method-card--selected {
  border: 2px solid var(--color-accent);
  background-color: rgba(247, 151, 29, 0.05);
}

.method-card__radio {
  margin-right: 0.85rem;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--color-cyan);
  cursor: pointer;
}

.method-card--iris .method-card__radio {
  accent-color: var(--color-accent);
}

.method-card__details {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.method-card__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.method-card__text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 0.1rem;
}

.method-card__desc {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}

.method-card__icons {
  display: flex;
  gap: 0.25rem;
}

.method-card__icon {
  height: 20px;
  width: auto;
  border-radius: 2px;
}

.method-card__logo {
  height: 24px;
  width: auto;
}

.checkout-alert {
  background-color: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 0.5rem;
  padding: 0.7rem 0.9rem;
  color: #b45309;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  text-align: left;
  display: none;
}

.country-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.country-flag {
  width: 2.5rem;
  height: 1.7rem;
  border-radius: 0.3rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
}

.country-flag svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-flag:hover {
  transform: translateY(-1px);
}

.country-flag--active {
  border-color: var(--color-cyan);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.5rem;
  overflow-y: auto;
  max-height: 220px;
  padding-right: 2px;
}

.bank-item {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: 0.6rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.bank-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-cyan);
}

.bank-item--active {
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 2px rgba(0, 195, 248, 0.15);
}

.bank-logo {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.selected-bank-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-grow: 1;
}

.selected-bank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
}

.selected-bank-title {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: left;
}

.selected-bank-name {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.2rem;
}

.back-link {
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text-muted);
}
.back-link:hover {
  color: var(--color-cyan);
}

.selected-bank-instructions {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  text-align: left;
}

.selected-bank-instructions p {
  margin-bottom: 0.5rem;
}

.selected-bank-instructions a {
  text-decoration: underline;
  font-weight: 600;
}

.selected-bank-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn--widget-continue {
  flex-grow: 1;
  padding: 0.85rem 1.5rem;
  border-radius: 2rem;
  background-color: var(--color-cyan);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn--widget-continue:hover {
  background-color: var(--color-cyan-hover);
}

.btn--circle-arrow-widget {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--color-cyan);
  color: var(--color-text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn--circle-arrow-widget:hover {
  background-color: var(--color-cyan-hover);
  transform: scale(1.05);
}

.bank-portal-inline {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #ffffff;
  text-align: center;
  padding: 0.5rem 0;
  justify-content: center;
}

.bank-portal-inline__logo {
  height: 40px;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.widget-main--dark .bank-logo text {
  fill: #ffffff !important;
}
.widget-main--dark .bank-logo path {
  fill: #ffffff !important;
}

.bank-portal-inline__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #a5b4fc;
  margin-bottom: 0.35rem;
}

.bank-portal-inline__desc {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.bank-portal-inline__info-box {
  background-color: #0d121c;
  border-radius: 0.75rem;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.5rem;
  text-align: left;
  border: 1px solid #273549;
}

.bank-portal-inline__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
}

.bank-portal-inline__row:last-child {
  margin-bottom: 0;
  border-top: 1px solid #273549;
  padding-top: 0.5rem;
  font-weight: 800;
  font-size: 0.98rem;
}

.bank-portal-inline__label {
  color: #94a3b8;
}

.bank-portal-inline__val {
  color: #f1f5f9;
  font-weight: 600;
}

.bank-portal-inline__row:last-child .bank-portal-inline__label {
  color: #ffffff;
}
.bank-portal-inline__row:last-child .bank-portal-inline__val {
  color: #22d3ee;
}

.btn--portal-confirm {
  background-color: #22d3ee;
  color: #0e131b;
  font-weight: 800;
  width: 100%;
  padding: 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 0.6rem;
}
.btn--portal-confirm:hover {
  background-color: #06b6d4;
}

.btn--portal-cancel {
  background-color: transparent;
  color: #cbd5e1;
  font-weight: 600;
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #475569;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn--portal-cancel:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.success-card {
  text-align: center;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #dcfce7;
  color: #15803d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 2.2rem;
  animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.success-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #15803d;
  margin-bottom: 0.5rem;
}

.success-desc {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.receipt-box {
  background-color: var(--color-sidebar-bg);
  border-radius: 0.65rem;
  padding: 1rem 1.1rem;
  width: 100%;
  text-align: left;
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
}
.receipt-row:last-child {
  margin-bottom: 0;
  border-top: 1px dashed #cbd5e1;
  padding-top: 0.45rem;
  font-weight: 800;
  font-size: 0.98rem;
}

.receipt-label {
  color: var(--color-text-muted);
}

.receipt-value {
  color: var(--color-primary);
}

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero__content {
    text-align: center;
  }

  .hero__description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero__logo {
    margin: 0 auto 1.25rem;
  }
  
  .hero__actions {
    justify-content: center;
  }
  
  .payment-widget {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .payment-widget {
    flex-direction: column;
    max-width: 440px;
    margin: 0 auto;
    min-height: auto;
  }
  
  .widget-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .widget-sidebar__store-header {
    display: none;
  }
  
  .widget-sidebar__product-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 0;
    gap: 0.75rem;
  }
  
  .widget-sidebar__product-img-box {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    border-radius: 0.4rem;
  }
  
  .widget-sidebar__product-title {
    font-size: 0.9rem;
    text-align: left;
    margin-bottom: 0;
  }
  
  .widget-sidebar__product-meta {
    display: none;
  }
  
  .widget-sidebar__breakdown {
    display: none;
  }
  
  .widget-sidebar__mobile-summary {
    display: flex;
    flex-direction: column;
    text-align: right;
  }
  
  .widget-sidebar__mobile-total-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
  }
  
  .widget-sidebar__mobile-total-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary);
  }
}
