body.pcrf-custom-product .woocommerce-notices-wrapper {
    width: min(1180px, calc(100% - 32px));
    margin: 20px auto;
}

body.pcrf-custom-product div.product > .woocommerce-product-gallery,
body.pcrf-custom-product div.product > .summary,
body.pcrf-custom-product div.product > .woocommerce-tabs,
body.pcrf-custom-product div.product > .related,
body.pcrf-custom-product div.product > .upsells,
body.pcrf-custom-product div.product > .product_meta {
    display: none !important;
}

body.pcrf-custom-product div.product {
    margin: 0 !important;
    padding: 0 !important;
}

.pcrf-wrap,
.pcrf-wrap * {
    box-sizing: border-box;
}

.pcrf-wrap {
    --pcrf-bg: #050816;
    --pcrf-card: rgba(15, 23, 42, 0.76);
    --pcrf-card-2: rgba(8, 15, 30, 0.86);
    --pcrf-text: #f7fbff;
    --pcrf-muted: #aeb8c8;
    --pcrf-gold: #d7a833;
    --pcrf-gold-2: #f4d27a;
    --pcrf-blue: #93f2f9;
    width: 100vw;
    max-width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: 26px 16px 64px;
    direction: inherit;
    color: var(--pcrf-text);
    background: transparent !important;
    overflow: hidden;
    font-family: 'Tajawal', sans-serif;
}

.pcrf-shell {
    width: min(1220px, 100%);
    margin: 0 auto;
}

.pcrf-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 22px;
    align-items: stretch;
    margin-bottom: 22px;
}

.pcrf-hero-content,
.pcrf-hero-card,
.pcrf-panel,
.pcrf-summary-inner,
.pcrf-fixed-type {
    border: 1px solid rgba(215, 168, 51, 0.34);
    background: var(--pcrf-card);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 80px rgba(0, 0, 0, 0.30);
    border-radius: 28px;
}

.pcrf-hero-content {
    padding: clamp(28px, 5vw, 46px);
    position: relative;
    overflow: hidden;
}

.pcrf-hero-content:before,
.pcrf-panel:before,
.pcrf-summary-inner:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    display: none;
}

.pcrf-badge,
.pcrf-summary-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(215, 168, 51, 0.12);
    color: var(--pcrf-gold-2);
    border: 1px solid rgba(215, 168, 51, 0.45);
    font-size: 14px;
    font-weight: 800;
}

.pcrf-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(30px, 5vw, 58px);
    line-height: 1.12;
    letter-spacing: -0.8px;
}

.pcrf-hero p {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 850px;
    color: #c6cfdd;
    font-size: 18px;
    line-height: 1.9;
}

.pcrf-hero-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 100%;
    background: var(--pcrf-card-2);
}


.pcrf-hero-card-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 18px;
    color: #08111f;
    font-size: 18px;
    font-weight: 1000;
    letter-spacing: .5px;
    background: linear-gradient(135deg, var(--pcrf-gold-2), var(--pcrf-gold));
    box-shadow: 0 16px 34px rgba(215, 168, 51, .22);
    position: relative;
}

.pcrf-hero-card-icon:after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 14px;
    border: 1px solid rgba(8, 17, 31, .25);
    pointer-events: none;
}

.pcrf-mode-robot .pcrf-hero-card-icon:before {
    content: "🤖";
    position: absolute;
    inset-inline-start: -10px;
    top: -10px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #08111f;
    border: 1px solid rgba(215,168,51,.45);
    font-size: 13px;
}

.pcrf-mode-indicator .pcrf-hero-card-icon:before {
    content: "↗";
    position: absolute;
    inset-inline-start: -10px;
    top: -10px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #08111f;
    border: 1px solid rgba(215,168,51,.45);
    color: var(--pcrf-gold-2);
    font-size: 17px;
}

.pcrf-hero-card strong {
    display: block;
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 10px;
}

.pcrf-hero-card span {
    color: #c1cad8;
    line-height: 1.8;
}

.pcrf-form {
    display: block !important;
    margin: 0 !important;
}

.pcrf-grid {
    display: grid;
    gap: 16px;
}

.pcrf-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pcrf-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pcrf-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.pcrf-type-card {
    position: relative;
    display: block;
    min-height: 168px;
    padding: 26px;
    border-radius: 26px;
    border: 1px solid rgba(215, 168, 51, 0.32);
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.pcrf-type-card:hover,
.pcrf-type-card:has(input:checked) {
    transform: translateY(-3px);
    border-color: rgba(244, 210, 122, 0.95);
    background: rgba(25, 40, 62, 0.88);
    box-shadow: 0 18px 52px rgba(215, 168, 51, 0.15);
}

.pcrf-type-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pcrf-type-card:after {
    content: "";
    position: absolute;
    inset-inline-end: 20px;
    top: 20px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(255,255,255,.92);
    box-shadow: 0 0 0 4px rgba(255,255,255,.07);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.pcrf-type-card:has(input:checked):after {
    background: var(--pcrf-gold);
    border-color: var(--pcrf-gold-2);
    box-shadow: 0 0 0 4px rgba(215,168,51,.18), 0 0 18px rgba(244,210,122,.35);
    transform: scale(1.06);
}

.pcrf-type-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(215, 168, 51, 0.12);
    border: 1px solid rgba(215, 168, 51, 0.22);
    margin-bottom: 18px;
    font-size: 22px;
}

.pcrf-type-card strong {
    display: block;
    color: #ffffff;
    font-size: 21px;
    margin-bottom: 10px;
}

.pcrf-type-card small {
    display: block;
    color: #b8c2d0;
    line-height: 1.8;
    font-size: 14px;
}

.pcrf-fixed-type {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.pcrf-fixed-type > span {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(215, 168, 51, .14);
    border: 1px solid rgba(215, 168, 51, .38);
}

.pcrf-fixed-type strong {
    display: block;
    font-size: 18px;
    color: #fff;
    margin-bottom: 4px;
}

.pcrf-fixed-type small {
    color: var(--pcrf-muted);
}

.pcrf-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: start;
}

.pcrf-panel {
    position: relative;
    padding: 28px;
    margin-bottom: 18px;
    overflow: hidden;
}

.pcrf-panel > * {
    position: relative;
    z-index: 1;
}

.pcrf-section-title {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.pcrf-section-title > span {
    flex: 0 0 auto;
    min-width: 46px;
    height: 46px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #08111f;
    background: linear-gradient(135deg, var(--pcrf-gold-2), var(--pcrf-gold));
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(215, 168, 51, .18);
}

.pcrf-section-title h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(20px, 2vw, 28px);
}

.pcrf-section-title p {
    margin: 0;
    color: var(--pcrf-muted);
    line-height: 1.8;
}

.pcrf-field {
    margin-bottom: 16px;
}

.pcrf-field label {
    display: block;
    color: #f7fbff;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 9px;
}

.pcrf-field label b {
    color: var(--pcrf-gold-2);
}

.pcrf-field input[type="text"],
.pcrf-field input[type="email"],
.pcrf-field input[type="file"],
.pcrf-field select,
.pcrf-field textarea {
    width: 100%;
    min-height: 52px;
    border: 1.5px solid rgba(215, 168, 51, 0.58) !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 16px !important;
    padding: 13px 15px !important;
    color: #ffffff !important;
    background: rgba(2, 6, 23, 0.78) !important;
    font-size: 15px;
    line-height: 1.6;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.pcrf-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--pcrf-gold-2) 50%),
        linear-gradient(135deg, var(--pcrf-gold-2) 50%, transparent 50%);
    background-position:
        left 18px center,
        left 12px center;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-left: 42px !important;
}

.pcrf-field select option {
    background: #08111f;
    color: #ffffff;
}

.pcrf-field textarea {
    min-height: 122px;
    resize: vertical;
}

.pcrf-field input:focus,
.pcrf-field select:focus,
.pcrf-field textarea:focus {
    border-color: rgba(244, 210, 122, 0.95) !important;
    background: rgba(6, 12, 28, 0.92) !important;
    box-shadow: 0 0 0 4px rgba(215, 168, 51, 0.12) !important;
}

.pcrf-field ::placeholder {
    color: rgba(201, 211, 225, 0.58);
}

.pcrf-field small {
    display: block;
    color: #96a3b7;
    margin-top: 8px;
    line-height: 1.6;
}

.pcrf-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pcrf-mini-grid {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.pcrf-check {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 56px;
    padding: 12px 13px;
    padding-inline-start: 40px;
    border-radius: 16px;
    border: 1px solid rgba(215, 168, 51, 0.26);
    background: rgba(2, 6, 23, 0.48);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
    margin: 0 !important;
}

.pcrf-mini-grid .pcrf-check {
    min-height: 54px;
    padding: 12px 14px;
    padding-inline-start: 42px;
    justify-content: flex-start;
    gap: 8px;
    overflow: hidden;
}

.pcrf-mini-grid .pcrf-check span {
    flex: 0 1 auto;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.pcrf-mini-grid .pcrf-check em {
    margin-inline-start: auto;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pcrf-check:hover,
.pcrf-check.pcrf-active {
    border-color: rgba(244, 210, 122, 0.86);
    background: rgba(215, 168, 51, 0.10);
    transform: translateY(-1px);
}

.pcrf-check:before {
    content: "";
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 2px solid rgba(255,255,255,.92);
    box-shadow: 0 0 0 4px rgba(255,255,255,.06);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.pcrf-check.pcrf-active:before {
    background: var(--pcrf-gold);
    border-color: var(--pcrf-gold-2);
    box-shadow: 0 0 0 4px rgba(215,168,51,.15), 0 0 16px rgba(244,210,122,.28);
    transform: translateY(-50%) scale(1.05);
}

.pcrf-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pcrf-check span {
    flex: 1;
    color: #edf3fb;
    font-size: 14px;
    line-height: 1.5;
}

.pcrf-check em {
    flex: 0 0 auto;
    font-style: normal;
    color: var(--pcrf-gold-2);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

[data-pcrf-section] {
    display: none;
}

[data-pcrf-section].is-active {
    display: block;
}

.pcrf-summary {
    position: sticky;
    top: 22px;
}

.pcrf-summary-inner {
    position: relative;
    overflow: hidden;
    padding: 24px;
}

.pcrf-summary-inner > * {
    position: relative;
    z-index: 1;
}

.pcrf-summary-inner h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 22px;
}

.pcrf-total {
    color: var(--pcrf-gold-2);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 900;
    margin: 6px 0 18px;
    line-height: 1.1;
}

.pcrf-price-lines {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.pcrf-price-lines > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(2, 6, 23, .46);
    border: 1px solid rgba(215, 168, 51, .18);
}

.pcrf-price-lines span {
    color: #b9c5d5;
}

.pcrf-price-lines strong {
    color: #fff;
}

.pcrf-selected-list {
    list-style: none !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    display: grid;
    gap: 8px;
    max-height: 280px;
    overflow: auto;
}

.pcrf-selected-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #c9d3e1;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px dashed rgba(215, 168, 51, .17);
    padding-bottom: 8px;
}

.pcrf-selected-list strong {
    color: var(--pcrf-gold-2);
    white-space: nowrap;
}

.pcrf-submit {
    width: 100% !important;
    min-height: 56px !important;
    border: none !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, var(--pcrf-gold-2), var(--pcrf-gold)) !important;
    color: #08111f !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    box-shadow: 0 18px 38px rgba(215, 168, 51, .22) !important;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.pcrf-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 24px 46px rgba(215, 168, 51, .28) !important;
}

.pcrf-summary-note {
    color: #aeb8c8;
    font-size: 13px;
    line-height: 1.8;
    margin: 14px 0 0;
}

@media (max-width: 1024px) {
    .pcrf-hero,
    .pcrf-layout {
        grid-template-columns: 1fr;
    }

    .pcrf-summary {
        position: static;
    }

    .pcrf-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .pcrf-wrap {
        padding: 18px 12px 44px;
    }

    .pcrf-hero-content,
    .pcrf-hero-card,
    .pcrf-panel,
    .pcrf-summary-inner,
    .pcrf-fixed-type {
        border-radius: 22px;
    }

    .pcrf-hero-content,
    .pcrf-hero-card,
    .pcrf-panel,
    .pcrf-summary-inner {
        padding: 20px;
    }

    .pcrf-type-grid,
    .pcrf-grid-2,
    .pcrf-grid-3,
    .pcrf-check-grid {
        grid-template-columns: 1fr;
    }

    .pcrf-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pcrf-hero-card {
        align-items: center;
        text-align: center;
    }

    .pcrf-hero-card-icon {
        width: 50px;
        height: 50px;
        border-radius: 17px;
        margin-bottom: 14px;
    }

    .pcrf-type-card {
        min-height: auto;
        padding: 22px;
    }

    .pcrf-section-title {
        gap: 12px;
    }

    .pcrf-section-title > span {
        min-width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .pcrf-field input[type="text"],
    .pcrf-field input[type="email"],
    .pcrf-field input[type="file"],
    .pcrf-field select,
    .pcrf-field textarea {
        font-size: 14px;
    }
}

/* Tighten the top spacing on custom-form product pages without affecting normal products */
body.pcrf-custom-product .page_content_wrap,
body.pcrf-custom-product .content_wrap,
body.pcrf-custom-product .site-main,
body.pcrf-custom-product main.site-main,
body.pcrf-custom-product .woocommerce div.product {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

@media (max-width: 420px) {
    .pcrf-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .pcrf-mini-grid .pcrf-check {
        min-height: 50px;
        padding-inline-start: 38px;
        padding-inline-end: 10px;
    }

    .pcrf-mini-grid .pcrf-check span {
        font-size: 13px;
    }
}
