/* Search converters */
.petra-converters-page .petra-conv-main {
    padding-bottom: 5rem;
}

.petra-conv-title {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e3a8a;
}

.petra-conv-toolbar {
    margin-bottom: 0.75rem;
}

.petra-conv-search-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    margin-bottom: 0.5rem;
}

.petra-conv-input {
    flex: 1;
    border-radius: 0.85rem;
    border: 1px solid #cbd5e1;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    font-family: inherit;
}

.petra-conv-filter-btn {
    width: 2.75rem;
    flex-shrink: 0;
    border-radius: 0.85rem;
    border: 1px solid #cbd5e1;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 1rem;
    color: #1e3a8a;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.petra-conv-filter-btn.is-open {
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.petra-conv-filter-chevron {
    display: inline-block;
    transition: transform 0.2s ease;
}

.petra-conv-filter-btn.is-open .petra-conv-filter-chevron {
    transform: rotate(-180deg);
}

.petra-conv-search-submit {
    width: 100%;
    margin-bottom: 0.65rem;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 0.9rem;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

.petra-conv-filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* `display: flex` must not win over the [hidden] attribute (filters closed by default). */
.petra-conv-filters[hidden] {
    display: none !important;
}

.petra-conv-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

.petra-conv-select {
    border-radius: 0.75rem;
    border: 1px solid #cbd5e1;
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fff;
}

.petra-conv-cart-row {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}

@media (min-width: 640px) {
    .petra-conv-cart-row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 0.65rem;
    }

    .petra-conv-cart-row .petra-conv-label {
        flex: 1;
        min-width: 12rem;
    }
}

.petra-conv-new-cart {
    border: 1px solid rgba(37, 99, 235, 0.35);
    border-radius: 0.75rem;
    padding: 0.55rem 0.95rem;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        color 0.15s ease;
}

.petra-conv-new-cart:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1e40af;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.petra-conv-new-cart:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.petra-conv-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.petra-conv-card {
    position: relative;
    background: #fff;
    border-radius: 1.1rem;
    padding: 0.85rem;
    border: 2px solid #93c5fd;
    box-shadow: 0 4px 18px rgba(30, 64, 175, 0.08);
}

a.petra-conv-card-link {
    display: block;
    position: relative;
    z-index: 0;
    text-decoration: none;
    color: inherit;
}

a.petra-conv-card-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

.petra-conv-media {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 0.65rem;
    background: #f1f5f9;
}

.petra-conv-photo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.petra-conv-photo.is-placeholder {
    min-height: 160px;
    object-fit: cover;
}

.petra-conv-maker {
    position: absolute;
    left: 0.45rem;
    bottom: 0.45rem;
    width: 2.85rem;
    height: 2.85rem;
    object-fit: contain;
    z-index: 2;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.12);
    padding: 0.12rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.petra-conv-star {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 5;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(255, 255, 255, 0.94);
    color: #94a3b8;
    line-height: 0;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.petra-conv-star:hover {
    color: #64748b;
    border-color: #94a3b8;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.petra-conv-star:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.petra-conv-star:disabled {
    opacity: 0.55;
    cursor: wait;
}

.petra-conv-star-svg {
    display: block;
}

/* Off = outline only; on = filled (class `is-on`). */
.petra-conv-star:not(.is-on) .petra-conv-star-svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linejoin: round;
}

.petra-conv-star.is-on .petra-conv-star-svg path {
    fill: currentColor;
    stroke: none;
}

.petra-conv-star.is-on {
    color: #ca8a04;
    border-color: rgba(234, 179, 8, 0.65);
    background: #fffbeb;
    box-shadow: 0 2px 10px rgba(202, 138, 4, 0.18);
}

.petra-conv-star.is-on:hover {
    color: #a16207;
}

.petra-conv-remove-fav {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 5;
    pointer-events: auto;
    max-width: calc(100% - 1rem);
    padding: 0.4rem 0.55rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(244, 63, 94, 0.45);
    background: rgba(255, 241, 242, 0.95);
    color: #be123c;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
    font-family: inherit;
}

.petra-conv-remove-fav:disabled {
    opacity: 0.6;
    cursor: wait;
}

.petra-conv-ref {
    margin: 0 0 0.5rem;
    font-weight: 700;
    color: #2563eb;
    font-size: 0.95rem;
}

.petra-conv-price-hint {
    margin: 0 0 0.35rem;
    font-size: 0.65rem;
    line-height: 1.35;
    font-weight: 500;
    color: #64748b;
}

.petra-conv-price-btn {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.65rem;
    border: none;
    border-radius: 0.85rem;
    background: #0d9488;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.petra-conv-price-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
    text-align: center;
}

.petra-conv-add {
    width: 100%;
    padding: 0.65rem;
    border-radius: 0.85rem;
    border: none;
    background: #1d4ed8;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.petra-conv-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.petra-conv-qbtn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: none;
    background: #e2e8f0;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    color: #1e293b;
}

.petra-conv-qinput {
    width: 3.5rem;
    text-align: center;
    border-radius: 0.65rem;
    border: 1px solid #cbd5e1;
    padding: 0.35rem;
    font-weight: 600;
    font-family: inherit;
}

.petra-conv-sentinel {
    height: 1px;
}

.petra-conv-status {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    min-height: 1.25rem;
}

.petra-conv-fab {
    position: fixed;
    right: max(0.75rem, calc(50% - 14rem));
    bottom: 1.35rem;
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 1.05rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, #f1f5f9 55%, #e2e8f0 100%);
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 4px 14px rgba(15, 23, 42, 0.1),
        0 12px 28px rgba(30, 64, 175, 0.08);
    z-index: 20;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.petra-conv-fab:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.45);
    color: #1d4ed8;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 6px 18px rgba(15, 23, 42, 0.12),
        0 16px 36px rgba(37, 99, 235, 0.14);
}

.petra-conv-fab:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

.petra-conv-fab:active {
    transform: translateY(0);
}

.petra-conv-fab--has-items {
    border-color: rgba(37, 99, 235, 0.5);
    background: linear-gradient(165deg, #fff 0%, #eff6ff 45%, #e0e7ff 100%);
    color: #1d4ed8;
}

.petra-conv-fab-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f8fafc;
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.35);
}

.petra-conv-fab-badge[hidden] {
    display: none !important;
}

.petra-icon-placeholder {
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 480px) {
    .petra-conv-fab {
        right: 0.85rem;
    }
}

@media (min-width: 768px) {
    .petra-conv-fab {
        right: max(1rem, calc(50% - 23rem));
    }
}

@media (min-width: 1024px) {
    .petra-conv-fab {
        right: max(1rem, calc((100vw - 72rem) / 2 + 1rem));
    }
}

@media (min-width: 768px) {
    .petra-conv-list.petra-conv-list--grid-md {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .petra-conv-list.petra-conv-list--grid-md {
        grid-template-columns: repeat(3, 1fr);
    }

    .petra-conv-detail-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 1.25rem;
        align-items: start;
    }

    .petra-conv-related-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
        gap: 0.85rem;
    }
}

/* Converter detail page */
.petra-conv-detail-heading-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.petra-conv-detail-maker-badge {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
    border-radius: 0.65rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 0.2rem;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.petra-conv-detail-heading-title {
    margin-top: 0;
    margin-bottom: 0;
}

.petra-conv-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.6rem 0.35rem 0.4rem;
    margin-left: -0.4rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: #1e40af;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.petra-conv-back::before {
    content: "\2039";
    display: inline-block;
    font-size: 1.2em;
    line-height: 1;
    color: #2563eb;
    font-weight: 700;
}

.petra-conv-back:hover {
    background: #eff6ff;
    color: #1e3a8a;
    text-decoration: none;
}

.petra-conv-back:hover::before {
    color: #1d4ed8;
}

.petra-conv-back:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.petra-conv-detail-titlebar {
    background: #1e3a8a;
    color: #fff;
    margin: 0 -0.25rem 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: 0.65rem;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.petra-conv-gallery-main {
    position: relative;
    background: #f1f5f9;
    border-radius: 0.85rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.petra-conv-gallery-main img {
    display: block;
    width: 100%;
    max-height: min(420px, 55vh);
    object-fit: contain;
}

.petra-conv-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: #334155;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.petra-conv-gallery-nav--prev {
    left: 0.5rem;
}

.petra-conv-gallery-nav--next {
    right: 0.5rem;
}

.petra-conv-thumbs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.petra-conv-thumb {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.35rem;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: #e2e8f0;
}

.petra-conv-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
}

.petra-conv-thumb.is-active {
    border-color: #2563eb;
}

.petra-conv-meta-line {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
    color: #64748b;
}

.petra-conv-dl {
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.petra-conv-dl > div {
    display: grid;
    grid-template-columns: minmax(0, 10rem) 1fr;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.petra-conv-dl dt {
    margin: 0;
    font-weight: 600;
    color: #64748b;
}

.petra-conv-dl dd {
    margin: 0;
    font-weight: 700;
    color: #0f172a;
}

.petra-conv-subheading {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    color: #1e3a8a;
    font-weight: 700;
}

.petra-conv-price-history {
    margin-top: 1.5rem;
}

.petra-conv-price-chart-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.6rem 0.7rem 0.5rem;
}

.petra-conv-price-chart {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.petra-conv-price-chart-axis {
    stroke: #cbd5e1;
    stroke-width: 1;
}

.petra-conv-price-chart-line {
    fill: none;
    stroke: #2563eb;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.petra-conv-price-chart-point {
    fill: #1d4ed8;
    opacity: 0.8;
}

.petra-conv-price-chart-meta {
    margin-top: 0.35rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #475569;
}

.petra-conv-price-chart-meta span {
    font-variant-numeric: tabular-nums;
}

.petra-conv-price-chart-meta span:nth-child(2),
.petra-conv-price-chart-meta span:nth-child(3) {
    text-align: center;
}

.petra-conv-price-chart-meta span:last-child {
    text-align: right;
}

.petra-conv-related {
    margin-top: 1.5rem;
}

.petra-conv-related h2 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    color: #1e3a8a;
}

.petra-conv-related-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    overflow: hidden;
}

.petra-conv-related-card img,
.petra-conv-related-card-ph {
    width: 100%;
    height: 5rem;
    object-fit: cover;
    background: #f1f5f9;
}

.petra-conv-related-card span {
    display: block;
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2563eb;
}

.petra-conv-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.petra-conv-card-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 1.1rem;
}

.petra-conv-empty-cta {
    margin: 1rem 0 0;
    text-align: center;
}

.petra-cart-summary-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.petra-cart-summary-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.petra-cart-summary-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.petra-cart-summary-card__title {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    color: #1e3a8a;
}

.petra-cart-summary-card__stats {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.petra-cart-summary-card__stats dt {
    margin: 0;
    font-weight: 600;
    color: #64748b;
    font-size: 0.78rem;
}

.petra-cart-summary-card__stats dd {
    margin: 0.15rem 0 0;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.petra-cart-summary-card__cta {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #2563eb;
}

.petra-cart-detail-head {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 0.5rem;
}

.petra-cart-rename-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.petra-cart-rename-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.petra-cart-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.petra-cart-line-delete {
    border: none;
    background: transparent;
    color: #b91c1c;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0.15rem 0;
}

.petra-cart-line-delete:hover {
    color: #991b1b;
}

@media (max-width: 520px) {
    .petra-cart-summary-card__stats {
        grid-template-columns: 1fr;
    }
}

/* New cart modal (search page) */
.petra-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.petra-modal[hidden] {
    display: none !important;
}

.petra-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.petra-modal__card {
    position: relative;
    width: 100%;
    max-width: 22rem;
    background: #fff;
    border-radius: 1rem;
    padding: 1.15rem 1.2rem 1.2rem;
    box-shadow: 0 18px 48px rgba(30, 58, 138, 0.18);
}

.petra-modal__title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3a8a;
}

.petra-modal__label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.petra-modal__input {
    border-radius: 0.75rem;
    border: 1px solid #cbd5e1;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
}

.petra-modal__actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.petra-modal__btn {
    border: none;
    border-radius: 0.75rem;
    padding: 0.55rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
}

.petra-modal__btn--secondary {
    background: #f1f5f9;
    color: #334155;
}

.petra-modal__btn--primary {
    background: #2563eb;
    color: #fff;
}

a.petra-brand-card--link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.petra-brand-card--link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.15);
}

/* Calculator: currency + spot (before discount) */
.petra-calc-section--highlight {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.06), rgba(248, 250, 252, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.petra-calc-section--spot {
    margin-bottom: 1rem;
}

.petra-calc-spot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.65rem;
}

.petra-calc-spot-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.65rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.petra-calc-spot-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.petra-calc-spot-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.petra-calc-submit-btn {
    min-width: 9rem;
}

/* Contact page */
.petra-contact-page {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 1rem 2.5rem;
    width: 100%;
    box-sizing: border-box;
}

.petra-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 1.5rem;
    width: 100%;
    max-width: 20rem;
    border: none;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.35);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.petra-contact-submit:hover {
    filter: brightness(1.06);
}

.petra-contact-submit:active {
    transform: scale(0.98);
}

/* Converter card: show price loading */
.petra-conv-price-btn.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.petra-conv-price-btn.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: petra-price-spin 0.7s linear infinite;
}

@keyframes petra-price-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Sidebar converter intake */
.petra-sidebar-converter-form {
    margin-top: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.petra-sidebar-converter-form h3 {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.petra-sidebar-converter-form label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.2rem;
}

.petra-sidebar-converter-form input,
.petra-sidebar-converter-form textarea {
    width: 100%;
    box-sizing: border-box;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    padding: 0.4rem 0.5rem;
    font-size: 0.82rem;
    margin-bottom: 0.45rem;
    font-family: inherit;
}

.petra-sidebar-converter-form textarea {
    min-height: 4rem;
    resize: vertical;
}

.petra-sidebar-converter-form button[type='submit'] {
    width: 100%;
    margin-top: 0.35rem;
    border: none;
    border-radius: 0.55rem;
    padding: 0.45rem 0.6rem;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
}

.petra-sidebar-converter-sent {
    font-size: 0.78rem;
    color: #166534;
    margin-top: 0.35rem;
}
