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

.fcpo-form {
    max-width: 960px;
    margin: 0 auto;
    color: #4f4f4f;
    font-family: 'Barlow', Arial, Helvetica, sans-serif;
}

.fcpo-shell {
    display: grid;
    gap: 22px;
}

.fcpo-section {
    display: grid;
    gap: 12px;
}

.fcpo-section-title {
    width: fit-content;
    padding-bottom: 8px;
    border-bottom: 3px solid #ff7300;
    color: #676767;
    font-size: 13px;
    font-weight: 800;
    text-transform: capitalize;
}

.fcpo-section-subtitle {
    padding-top: 6px;
    color: #8a8a8a;
    font-size: 12px;
    text-transform: capitalize;
}

.fcpo-product-items {
    display: grid;
    gap: 16px;
}

.fcpo-product-item {
    overflow: hidden;
    border: 1px solid #e4e4e4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.fcpo-product-item-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border: 0;
    background-color: #090908;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.fcpo-product-item-icon {
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
}

.fcpo-product-item-body {
    display: grid;
    gap: 16px;
    padding: 16px 18px;
    border-top: 1px solid #f0f0f0;
}

.fcpo-product-item-fields {
    display: grid;
    gap: 16px;
}

.fcpo-product-item-actions {
    margin-top: 4px;
}

.fcpo-shipping-options {
    display: grid;
    gap: 10px;
}

.fcpo-shipping-option {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    padding: 13px 14px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.fcpo-shipping-option:has(input:checked) {
    border-color: #ff7300;
    box-shadow: 0 0 0 1px #ff7300;
}

.fcpo-shipping-option input {
    margin-top: 3px;
}

.fcpo-shipping-option strong,
.fcpo-shipping-option small {
    display: block;
}

.fcpo-shipping-option strong {
    color: #4f4f4f;
    font-size: 14px;
    font-weight: 800;
}

.fcpo-shipping-option small {
    margin-top: 3px;
    color: #7a7a7a;
    font-size: 12px;
    font-weight: 700;
}

.fcpo-shipping-note {
    padding: 12px 14px;
    border: 1px solid #ead2ba;
    border-radius: 8px;
    background: #fff8f0;
    color: #8a4b12;
    font-size: 13px;
    font-weight: 700;
}

.fcpo-shipping-note.is-loading {
    border-color: #bfd6ff;
    background: #eef5ff;
    color: #2357a5;
}

.fcpo-field {
    display: grid;
    gap: 6px;
}

.fcpo-field span {
    color: #8a8a8a;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.fcpo-field .form-control,
.fcpo-field .form-select,
.fcpo-field input,
.fcpo-field textarea,
.fcpo-field select {
    min-height: 44px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #fff;
    color: #5f5f5f;
    font-size: 15px;
    box-shadow: none;
}

.fcpo-field .form-control,
.fcpo-field input,
.fcpo-field textarea {
    padding: 0 14px;
}

.fcpo-field textarea.form-control,
.fcpo-field textarea {
    min-height: 120px;
    padding: 12px 14px;
    resize: vertical;
}

.fcpo-field .form-select,
.fcpo-field select {
    padding-left: 14px;
}

.fcpo-wheel-picker {
    position: relative;
}

.fcpo-wheel-selected {
    width: 100%;
    min-height: 44px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #fff;
    color: #5f5f5f;
    font-size: 15px;
    text-align: left;
}

.fcpo-wheel-selected img,
.fcpo-wheel-option img,
.fcpo-wheel-option-placeholder {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 6px;
    object-fit: cover;
    background: #f0f0f0;
}

.fcpo-wheel-selected span,
.fcpo-wheel-option span {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
}

.fcpo-wheel-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow: auto;
    padding: 6px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.fcpo-wheel-option {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #4f4f4f;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.fcpo-wheel-option:hover,
.fcpo-wheel-option:focus {
    background: #fff3e8;
    outline: none;
}

.fcpo-wheel-price,
.fcpo-product-price {
    padding: 12px 14px;
    border: 1px solid #ead2ba;
    border-radius: 8px;
    background: #fff8f0;
    color: #8a4b12;
    font-size: 13px;
    font-weight: 800;
}

.fcpo-field .form-control:focus,
.fcpo-field .form-select:focus,
.fcpo-field input:focus,
.fcpo-field textarea:focus,
.fcpo-field select:focus {
    border-color: #ff7300;
    box-shadow: 0 0 0 1px #ff7300;
}

.fcpo-field.is-invalid .form-control,
.fcpo-field.is-invalid .form-select,
.fcpo-field.is-invalid input,
.fcpo-field.is-invalid textarea,
.fcpo-field.is-invalid select {
    border-color: #d32f2f;
    background: #fff1f1;
    box-shadow: 0 0 0 1px #d32f2f;
}

.fcpo-field-error {
    color: #b3261e;
    font-size: 11px;
    font-weight: 800;
}

.fcpo-feedback {
    display: none;
    padding: 14px 16px;
    border: 1px solid #bfd6ff;
    border-radius: 8px;
    background: #eef5ff;
    color: #2357a5;
    font-size: 14px;
    font-weight: 700;
}

.fcpo-feedback:not(:empty) {
    display: block;
}

.fcpo-feedback.is-error {
    border-color: #f2b8b5;
    background: #fff1f1;
    color: #b3261e;
}

.fcpo-feedback.is-success {
    border-color: #b8dfc3;
    background: #eefbf1;
    color: #0e7d35;
}

.fcpo-result {
    padding: 14px 16px;
    border: 1px solid #b8dfc3;
    border-radius: 8px;
    background: #eefbf1;
}

.fcpo-result[hidden] {
    display: none !important;
}

.fcpo-payment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid #ead2ba;
    border-radius: 8px;
    background: #fff8f0;
}

.fcpo-payment[hidden] {
    display: none !important;
}

.fcpo-payment-copy {
    display: grid;
    gap: 8px;
}

.fcpo-payment-copy strong {
    color: #8a4b12;
    font-size: 15px;
    font-weight: 800;
}

.fcpo-payment-copy p {
    margin: 0;
    color: #6d5d4d;
    font-size: 13px;
    font-weight: 700;
}

.fcpo-payment-copy span {
    display: block;
    margin-bottom: 4px;
    color: #8a8a8a;
    font-size: 11px;
    text-transform: uppercase;
}

.fcpo-payment-copy code {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 6px 8px;
    border-radius: 6px;
    background: #fff;
    color: #4f4f4f;
}

.fcpo-payment img {
    width: 132px;
    height: 132px;
    flex: 0 0 132px;
    object-fit: contain;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fff;
    padding: 6px;
}

.fcpo-result strong {
    display: block;
    color: #0e7d35;
    font-size: 15px;
}

.fcpo-result-copy p {
    margin: 6px 0 0;
    color: #56745f;
    font-size: 13px;
    font-weight: 700;
}

.fcpo-actions {
    margin-top: 4px;
}

.fcpo-btn {
    min-width: 160px;
    min-height: 42px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.fcpo-btn-primary {
    background: #ff7300;
    color: #fff;
}

.fcpo-btn-outline {
    border-color: #ff9d59;
    background: #fff;
    color: #ff7300;
}

.fcpo-btn:disabled {
    cursor: wait;
    opacity: 0.72;
}

.fcpo-btn-add-product {
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.fcpo-btn-add-product:hover {
    background: #ff6b00;
    border-color: #ff6b00;
    color: #fff;
}

.fcpo-btn-add-product::before {
    content: '+';
    font-size: 18px;
    font-weight: 700;
}

.fcpo-product-item-actions .fcpo-btn {
    min-width: auto;
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.fcpo-product-item-actions .fcpo-btn:hover {
    background: #c82333;
    border-color: #bd2130;
}

.fcpo-whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    background: #12a84f;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 720px) {
    .fcpo-payment {
        align-items: stretch;
        flex-direction: column;
    }

    .fcpo-payment img {
        width: 100%;
        max-width: 180px;
        height: auto;
        aspect-ratio: 1;
    }
}
