.cart-summary table.table tbody tr,
.cart-summary table.table tbody td
{
  white-space: normal;
}

.table-curved tbody>tr>td.price-col {
  vertical-align: bottom;
  text-align: right;
}

.totals-box {
  margin-top: 20px;
}

.totals-box table {
  margin-bottom: 20px;
  text-align: right;
  border: none;
}

.totals-box table>tbody>tr>td {
  border: none;
}

.whois {
    background: rgba(0, 0, 0, 0.05);
    background-repeat: no-repeat;
    background-position: 110% -70px;
    background-image: url(../images/globe.svg);
    padding: 25px;
}

.whois div.checkbox label {
  padding-right: 5px;
}

.whois div.tlds, div.search {
  margin: 0 auto;
  text-align: center;
  display: block;
}

.whois div.tlds {
  margin-bottom: 0;
}

.whois .show_more {
	margin-left: 5px;
}

/* Begin for order pages */

.card-steps {
    padding: 10px;
	background: var(--light);
}

.card-steps i {
	opacity: 0.3;
}

.card-steps p {
	opacity: 0.7;
}

.card-steps a.active:before {
    content: "\f138";
    font-family: "Font Awesome 5 Free";
    font-style: normal;
    font-weight: 900;
    margin-right: 5px;
    color: var(--success);
}

.table>tbody>tr.sub-item>td {
  border-top: none;
}

#login_box #login_message .alert {
	margin-top: 10px;
}
.pass-reset {
    padding-top: 5px;
    font-size: 12px;
    font-style: italic;
}

/* End for order pages */

/* Octorock order template: loaded after Blesta's standard order.css (scripts/blesta_order_template.py).
   Only order pages load this file, so rules are unscoped (there is no wrapper in the client layout). */

/* Step strip: numbered pills instead of chevrons */
.card-steps { background: #fff; border: 1px solid #ede7f3; border-radius: 12px; padding: 6px 10px; margin-bottom: 20px; }
.card-steps .row > div { position: relative; padding-left: 58px; min-height: 44px; }
/* fixed numbers, not a CSS counter: on phones the inactive steps are display:none and would not count */
.card-steps .row > div:nth-child(1)::before { content: "1"; }
.card-steps .row > div:nth-child(2)::before { content: "2"; }
.card-steps .row > div:nth-child(3)::before { content: "3"; }
.card-steps .row > div:nth-child(4)::before { content: "4"; }
.card-steps .row > div::before { position: absolute; left: 15px; top: 2px; width: 34px; height: 34px; border-radius: 50%; background: #f5f1fa; color: #663399; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #e2d8ee; }
.card-steps .row > div:has(a.active)::before { background: #994ce6; color: #fff; border-color: #994ce6; }
.card-steps i { display: none !important; }
.card-steps a.active::before { content: none !important; }
.card-steps a { color: #3b1d59; text-decoration: none; font-size: 1rem; }
.card-steps a.active { color: #663399; }
.card-steps p { margin: 0; color: #6b7280; font-size: 0.85rem; }
.card-steps p em { font-style: normal; }
@media (max-width: 767px) {
    .card-steps .row > div { padding-left: 50px; min-height: 36px; margin-bottom: 6px; }
    .card-steps .row > div::before { width: 28px; height: 28px; font-size: 0.85rem; top: 0; }
    .card-steps p { display: none; }
    .card-steps .row > div:not(:has(a.active)) { display: none; }
    .card-steps .row > div:has(a.active) { margin-bottom: 0; }
}

/* Cards */
.card.card-blesta { border: 1px solid #ede7f3; border-radius: 12px; box-shadow: 0 2px 12px rgba(59, 29, 89, 0.06); overflow: hidden; }
.card.card-blesta > .card-header { background: #fff; color: #3b1d59; font-weight: 700; font-size: 1.15rem; border-bottom: 1px solid #ede7f3; padding: 16px 22px; }
.card.card-blesta > .card-body { padding: 22px; }
h5 { color: #3b1d59; font-weight: 700; font-size: 1.05rem; margin: 18px 0 10px; }
h5:first-child { margin-top: 0; }
.oc-help { color: #6b7280; font-size: 0.92rem; margin: -4px 0 12px; }
.form-control { border-radius: 8px; border-color: #d9cbea; padding: 10px 12px; height: auto; }
.form-control:focus { border-color: #994ce6; box-shadow: 0 0 0 3px rgba(153, 76, 230, 0.18); }
.btn { border-radius: 8px; font-weight: 600; }
.btn-primary, .btn-success { background: #663399; border-color: #663399; }
.btn-primary:hover, .btn-success:hover { background: #552a80; border-color: #552a80; }
.oc-continue { padding: 12px 28px; font-size: 1.05rem; }

/* Package list as cards */
.oc-pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.oc-pkg-grid > hr { display: none; }
.oc-pkg { display: flex; flex-direction: column; border: 1px solid #ede7f3; border-radius: 12px; padding: 22px 20px 18px; background: #fff; transition: box-shadow 0.15s, border-color 0.15s; }
.oc-pkg:hover { border-color: #d9cbea; box-shadow: 0 8px 22px rgba(59, 29, 89, 0.10); }
.oc-pkg.oc-pkg-featured { border-color: #994ce6; box-shadow: 0 8px 22px rgba(153, 76, 230, 0.18); }
.oc-pkg-name { color: #3b1d59; font-size: 1.3rem; font-weight: 700; margin: 0 0 10px; }
.oc-pkg .pkg-description { color: #4b5563; font-size: 0.95rem; flex: 1 1 auto; margin-bottom: 16px; }
.oc-pkg .pkg-description ul { padding-left: 18px; margin: 8px 0 0; }
.oc-pkg .pkg-description li { margin-bottom: 4px; }
.oc-pkg .oc-pkg-order { float: none !important; }
.oc-pkg .oc-pkg-order form { display: block; }
.oc-pkg .oc-pkg-order .form-group { width: 100%; margin-bottom: 10px; }
.oc-pkg .oc-pkg-order select.form-control { width: 100%; }
.oc-pkg .oc-pkg-order .btn { width: 100%; padding: 10px; }
.oc-pkg .oc-pkg-order .btn-danger { opacity: 0.8; }

/* Configure step */
.package_options .form-group, .generated_fields_div .form-group { margin-bottom: 14px; }
.package_options label, .generated_fields_div label { color: #3b1d59; font-weight: 600; }
.package_options .form-check, .package_options .checkbox { border: 1px solid #ede7f3; border-radius: 10px; padding: 12px 14px 12px 38px; background: #faf8fc; }
.oc-domain-preview { color: #6b7280; font-size: 0.9rem; margin: 6px 0 0; min-height: 1.3em; }
.oc-domain-preview strong { color: #3b1d59; }
.oc-domain-preview.is-warn { color: #9a3412; }

/* Sidebar: login first, quiet empty cart */
#summary_section .card.card-blesta { display: flex; flex-direction: column; }
#summary_section #login_section { order: -1; background: #f5f1fa; border-bottom: 1px solid #ede7f3; border-top: 0; padding: 16px 20px; color: #3b1d59; font-weight: 600; }
#summary_section #login_section > a { color: #663399; text-decoration: underline; }
#summary_section #login_section .btn-light { background: #663399; color: #fff; border-color: #663399; }
#summary_section #login_box { margin-top: 12px; font-weight: 400; }
#summary_section .oc-cart-empty .alert-warning { background: transparent; border: 0; color: #6b7280; padding: 0; margin-bottom: 8px !important; font-size: 0.92rem; }
#summary_section .oc-cart-empty .alert-warning i { display: none; }
#summary_section .card-header { background: #fff; border-radius: 0 !important; }
#summary_section .oc-cart-empty-card .card-header { display: none; }
.oc-login-bar { background: #f5f1fa; border: 1px solid #e2d8ee; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; color: #3b1d59; font-size: 0.95rem; }
.oc-login-bar a { color: #663399; font-weight: 600; }
@media (min-width: 768px) { .oc-login-bar { display: none; } }
@media (max-width: 767px) {
    #summary_section { margin-top: 18px; }
    /* empty cart on phones: the whole card goes, the lavender login bar above the form covers login */
    #summary_section .card.oc-cart-empty-card { display: none !important; }
}

/* Domain search (Domain and Other forms) */
/* Blesta fills the TLD price table by AJAX on "Show All"; until then show only that button, not a bare header */
.table-curved.table-striped:not(:has(tr.tld_pricing)) thead { display: none; }
tr.tld_pricing_show .btn { background: #fff; color: #663399; border: 1px solid #d9cbea; font-weight: 600; }
.whois { background: #faf8fc; border-radius: 12px; padding: 22px; }
.whois .form-control { font-size: 1.1rem; padding: 12px 14px; }
.whois .tlds label, .whois .checkbox label { margin: 0 14px 8px 0; color: #3b1d59; }
.oc-lookup-actions .btn { font-weight: 600; }
.oc-lookup-actions .btn-light { background: #fff; color: #663399; border-color: #d9cbea; }
.oc-lookup-actions .btn-light:hover { background: #f5f1fa; }
.table-curved thead th { color: #3b1d59; border-top: 0; }
@media (max-width: 767px) {
    .whois { padding: 16px 14px; }
    .whois .oc-lookup-actions.btn-group { display: flex !important; flex-direction: column; width: 100%; }
    .whois .oc-lookup-actions.btn-group > .btn { width: 100%; margin: 0 0 8px !important; border-radius: 8px !important; }
}

/* "show more TLDs" toggle in the checkbox list, and the price table's Show All cell */
.whois .show_more.btn { background: #fff; color: #663399; border: 1px solid #d9cbea; border-radius: 999px; padding: 3px 12px; font-size: 0.8rem; font-weight: 600; margin-top: 6px; }
.whois .show_more.btn:hover { background: #f5f1fa; }
tr.tld_pricing_show td { border: 0 !important; padding: 6px 0 0 !important; background: transparent !important; }
tr.tld_pricing_show .btn { border-radius: 8px; }
.whois .oc-lookup-help { margin: 8px 0 0; color: #4b5563; }
.whois #oc-lookup-msg { margin: 6px 0 0; font-weight: 600; }
.oc-option-help { margin: 2px 0 10px; }

/* Cart on domain-type forms: add the other half of the order */
.oc-cart-add { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: #f5f1fa; border: 1px solid #e2d8ee; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; color: #3b1d59; font-weight: 600; }
.oc-cart-add span { margin-right: auto; }
.oc-cart-add .btn-light { background: #fff; color: #663399; border-color: #d9cbea; font-weight: 600; }
.oc-cart-add .btn-light:hover { background: #ede7f3; }
@media (max-width: 575px) { .oc-cart-add span { flex: 1 0 100%; margin: 0; } .oc-cart-add .btn { flex: 1 1 auto; } }
