/**
 * WPHostee store-page styling for the Hosting Configurator (Plan -> Data
 * Center -> Hosting Control Panel picker) and its plan pricing cards.
 *
 * This is the exact same visual style used on the main marketing site's
 * shared-hosting.html (and its sibling product-line pages) - lifted
 * verbatim from css/style.css (the .block-7 card block and the
 * .wph-configurator* block) so this WHMCS store page matches. Both blocks
 * are already fully self-scoped under their own class names, so loading
 * this file site-wide in WHMCS (via header.tpl) is safe: the rules simply
 * never match on any page that doesn't contain this markup.
 *
 * Driven by the shared js/wph-hosting-configurator.js file (single source
 * of truth for plan/location/panel data and real WHMCS checkout URLs).
 */

.wph-store-configurator {
  margin: 10px 0 30px;
}
/* Bootstrap's default gutter (15px column padding = 30px between cards) reads
   as too tight for these large white cards on a light background - widen it
   and add explicit row-to-row spacing so wrapped cards never look stuck
   together regardless of how tall each card's feature list makes it. */
.wph-store-configurator .row {
  margin-left: -20px;
  margin-right: -20px;
}
.wph-store-configurator .row > [class*="col-"] {
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 40px;
}

/* Plan pricing card - copied from css/style.css .block-7 */
.block-7 {
  position: relative;
  overflow: hidden;
  padding: 45px 30px 35px;
  border-radius: 16px;
  -webkit-box-shadow: 0 20px 45px rgba(0, 70, 98, 0.1);
  -moz-box-shadow: 0 20px 45px rgba(0, 70, 98, 0.1);
  box-shadow: 0 20px 45px rgba(0, 70, 98, 0.1);
  background: #fff; }
  .block-7::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(45deg, #004662 0%, #567525 100%); }
  @media (max-width: 991.98px) {
    .block-7 {
      margin-bottom: 30px; } }
  .block-7 .heading {
    font-size: 20px;
    font-weight: 600;
    color: #004662;
    letter-spacing: 0.3px; }
  .block-7 .heading-2 {
    font-size: 14px;
    font-weight: normal;
    color: #a9a9a9; }
  .block-7 .price {
    margin: 0;
    padding: 0;
    display: block; }
    .block-7 .price sup {
      font-size: 20px;
      top: -1em;
      color: #000; }
    .block-7 .price .number {
      font-size: 46px;
      font-weight: 500;
      background: #12e6ca;
      background: -moz-linear-gradient(45deg, #004662 0%, #567525 100%);
      background: -webkit-gradient(left bottom, right top, color-stop(0%, #004662), color-stop(100%, #567525));
      background: -webkit-linear-gradient(45deg, #004662 0%, #567525 100%);
      background: -o-linear-gradient(45deg, #004662 0%, #567525 100%);
      background: -ms-linear-gradient(45deg, #004662 0%, #567525 100%);
      background: linear-gradient(45deg, #004662 0%, #567525 100%);
      filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#004662', endColorstr='#567525', GradientType=1 );
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent; }
  .block-7 .excerpt {
    margin-bottom: 4px;
    color: #8a8a8a;
    font-size: 13px; }
  .block-7 .label2 {
    text-transform: uppercase; }
  .block-7 .pricing-text {
    margin: 22px 0 28px;
    text-align: left; }
    .block-7 .pricing-text, .block-7 .pricing-text li {
      padding: 0;
      margin: 0; }
    .block-7 .pricing-text li {
      list-style: none;
      padding: 9px 2px;
      border-bottom: 1px solid #f0f0f0;
      color: #6b6b6b;
      font-size: 14px; }
      .block-7 .pricing-text li:last-child {
        border-bottom: none; }
      .block-7 .pricing-text li strong {
        color: #004662;
        font-weight: 600; }
  .block-7 .btn-primary {
    border: none;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(0, 70, 98, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    background: #004662;
    background: -moz-linear-gradient(45deg, #004662 0%, #567525 100%);
    background: -webkit-gradient(left bottom, right top, color-stop(0%, #004662), color-stop(100%, #567525));
    background: -webkit-linear-gradient(45deg, #004662 0%, #567525 100%);
    background: -o-linear-gradient(45deg, #004662 0%, #567525 100%);
    background: -ms-linear-gradient(45deg, #004662 0%, #567525 100%);
    background: linear-gradient(45deg, #004662 0%, #567525 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#004662', endColorstr='#567525', GradientType=1 ); }
    .block-7 .btn-primary:hover {
      border: none;
      color: #fff;
      transform: translateY(-2px);
      box-shadow: 0 14px 30px rgba(0, 70, 98, 0.25);
      background: #56c8fb;
      background: -moz-linear-gradient(45deg, #567525 0%, #004662 100%);
      background: -webkit-gradient(left bottom, right top, color-stop(0%, #567525), color-stop(100%, #004662));
      background: -webkit-linear-gradient(45deg, #567525 0%, #004662 100%);
      background: -o-linear-gradient(45deg, #567525 0%, #004662 100%);
      background: -ms-linear-gradient(45deg, #567525 0%, #004662 100%);
      background: linear-gradient(45deg, #567525 0%, #004662 100%);
      filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#567525', endColorstr='#004662', GradientType=1 ); }

/* Hosting Configurator (Plan -> Data Center -> Panel picker) - copied from
   css/style.css .wph-configurator* */
.wph-configurator {
    position: relative;
    margin-top: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 70, 98, 0.1);
    padding: 32px;
    scroll-margin-top: 120px;
}
.wph-configurator__pointer {
    position: absolute;
    top: -30px;
    left: 0;
    width: 32px;
    height: 32px;
    margin-left: -16px;
    border-radius: 50%;
    background: #567525;
    background: linear-gradient(45deg, #567525 0%, #004562 100%);
    box-shadow: 0 6px 16px rgba(0, 69, 98, 0.28);
    transform: translateX(0);
    transition: transform 0.35s ease;
}
.wph-configurator__pointer-bounce {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wphPointerBounce 1.6s ease-in-out infinite;
}
.wph-configurator__pointer svg {
    width: 16px;
    height: 16px;
}
@keyframes wphPointerBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}
@media (prefers-reduced-motion: reduce) {
    .wph-configurator__pointer-bounce {
        animation: none;
    }
}
@media (max-width: 767.98px) {
    .wph-configurator__pointer {
        display: none;
    }
}
.wph-configurator__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef1ee;
    margin-bottom: 24px;
}
.wph-configurator__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #567525;
    margin-bottom: 2px;
}
.wph-configurator__header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #004562;
    margin: 0;
}
.wph-configurator__price {
    font-weight: 700;
    color: #567525;
    font-size: 16px;
}
.wph-configurator__change {
    margin-left: auto;
    background: none;
    border: 1px solid #dfe7de;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #5c6b60;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.wph-configurator__change:hover {
    border-color: #567525;
    color: #567525;
}

.wph-configurator__steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    gap: 4px;
}
.wph-configurator__step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 30px;
    color: #93a196;
    font-size: 13px;
    font-weight: 600;
}
.wph-configurator__step.is-active {
    background: #f7f9f6;
    color: #182620;
}
.wph-configurator__step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    background: #eef1ee;
    color: #93a196;
    flex: none;
}
.wph-configurator__step.is-active .wph-configurator__step-num {
    background: #567525;
    background: linear-gradient(45deg, #567525 0%, #004562 100%);
    color: #fff;
}
.wph-configurator__step.is-done .wph-configurator__step-num {
    background: #78d5ef;
    color: #08303f;
}
.wph-configurator__step-label small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #93a196;
}
.wph-configurator__step-arrow {
    color: #dfe7de;
}

.wph-configurator__stage-title {
    font-weight: 700;
    color: #004562;
    margin-bottom: 14px;
    font-size: 15px;
}
.wph-configurator__back {
    display: inline-block;
    background: none;
    border: none;
    color: #567525;
    font-weight: 600;
    font-size: 13px;
    padding: 0;
    margin-bottom: 14px;
    cursor: pointer;
}
.wph-configurator__back:hover {
    color: #004562;
}

.wph-configurator__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.wph-configurator__card {
    position: relative;
    text-align: left;
    background: #fff;
    border: 1.5px solid #eef1ee;
    border-radius: 12px;
    padding: 16px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.wph-configurator__card:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 69, 98, 0.1);
}
.wph-configurator__card.is-selected {
    border-color: #567525;
    background: #f7f9f6;
}
.wph-configurator__card:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.wph-configurator__card:disabled:hover {
    transform: none;
    box-shadow: none;
}
.wph-configurator__card-media {
    display: flex;
    align-items: center;
    min-height: 24px;
}
.wph-configurator__card-media img {
    display: block;
    max-height: 24px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* Flag images always carry width="20" height="15" - style those specifically
   so they keep their little chip look rather than stretching like a logo. */
.wph-configurator__card-media img[width="20"] {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 69, 98, 0.08);
}
.wph-configurator__card-name {
    font-weight: 700;
    color: #182620;
    font-size: 14px;
}
.wph-configurator__card-meta {
    font-size: 11.5px;
    color: #93a196;
}
.wph-configurator__card-note {
    font-size: 11px;
    color: #b1442f;
    font-weight: 600;
    line-height: 1.4;
}

.wph-configurator__result {
    margin-top: 26px;
    padding: 22px;
    background: #f7f9f6;
    border-radius: 12px;
    text-align: center;
}
.wph-configurator__result p {
    margin: 0 0 14px;
    color: #182620;
    font-size: 15px;
}
.wph-configurator__result .btn {
    max-width: 280px;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .wph-configurator {
        padding: 22px 18px;
    }
    .wph-configurator__header {
        flex-direction: column;
        align-items: flex-start;
    }
    .wph-configurator__change {
        margin-left: 0;
    }
    .wph-configurator__cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
