.pyiad-wrap,
.pyiad-box {
    max-width: 920px;
    margin: 28px auto;
    color: #18364a;
}

.pyiad-wrap {
    background: #fff;
}

.pyiad-intro,
.pyiad-box {
    border: 1px solid #dbe7e5;
    border-radius: 14px;
    padding: 24px;
    background: #fff;
}

.pyiad-intro h1,
.pyiad-box h2,
.pyiad-step h2 {
    margin-top: 0;
    color: #173d46;
}

.pyiad-code {
    background: #eef8f6;
    padding: 10px 12px;
    border-radius: 8px;
}

.pyiad-progress {
    margin: 24px 0;
}

.pyiad-progress-text {
    font-size: 14px;
    margin-bottom: 8px;
}

.pyiad-progress-bar {
    height: 7px;
    background: #e7efee;
    border-radius: 999px;
    overflow: hidden;
}

.pyiad-progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    background: #2f8a80;
    transition: width .2s ease;
}

.pyiad-step {
    border: 1px solid #e0e9e7;
    border-radius: 14px;
    padding: 24px;
    background: #fff;
}

.pyiad-subtitle {
    margin-top: -8px;
    color: #667982;
}

.pyiad-html {
    background: #f5faf9;
    border-left: 4px solid #2f8a80;
    padding: 14px 16px;
    margin: 18px 0 24px;
}

.pyiad-field {
    margin: 0 0 22px;
}

.pyiad-label {
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
}

.pyiad-required {
    color: #b42318;
}

.pyiad-small,
.pyiad-description {
    font-size: 13px;
    color: #667982;
    font-weight: 400;
}

.pyiad-description {
    margin: -2px 0 7px;
}

.pyiad-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #bacbc8;
    border-radius: 7px;
    padding: 11px 12px;
    font-size: 16px;
    background: #fff;
    color: #18364a;
}

.pyiad-textarea {
    min-height: 120px;
    resize: vertical;
}

.pyiad-options {
    display: grid;
    gap: 9px;
}

.pyiad-option {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-weight: 400;
}

.pyiad-option input {
    margin-top: 4px;
}

.pyiad-has-error .pyiad-input,
.pyiad-has-error .pyiad-options {
    outline: 2px solid rgba(180,35,24,.15);
    outline-offset: 4px;
}

.pyiad-error,
.pyiad-form-error {
    color: #8a1c13;
    background: #fff0ee;
    border-left: 4px solid #b42318;
    padding: 10px 12px;
    margin-top: 8px;
}

.pyiad-success {
    background: #effaf7;
    border-left: 5px solid #2f8a80;
}

.pyiad-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 28px;
}

.pyiad-btn {
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    cursor: pointer;
    background: #287f77;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

.pyiad-secondary {
    background: #eef6f5;
    color: #1d5a56;
}

.pyiad-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.pyiad-generator .pyiad-generated {
    margin: 18px 0;
    padding: 16px;
    background: #eef8f6;
    border-radius: 10px;
}

.pyiad-generated input {
    width: 100%;
    margin: 10px 0;
    box-sizing: border-box;
    padding: 10px;
}

@media (max-width: 700px) {
    .pyiad-step,
    .pyiad-intro,
    .pyiad-box {
        padding: 18px;
    }

    .pyiad-actions {
        flex-direction: column;
    }

    .pyiad-btn {
        width: 100%;
    }
}


.pyiad-received-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.pyiad-received-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 15px;
    border: 1px solid #dbe7e5;
    border-radius: 10px;
    background: #fff;
}

.pyiad-received-detail {
    margin-top: 20px;
}

.pyiad-received-row {
    padding: 13px 0;
    border-bottom: 1px solid #e6eeee;
}

.pyiad-received-row strong {
    display: block;
    margin-bottom: 5px;
}

.pyiad-received-actions {
    margin: 18px 0;
}

@media (max-width: 700px) {
    .pyiad-received-card {
        align-items: stretch;
        flex-direction: column;
    }
}

@media print {
    header, footer, nav, .site-header, .site-footer, .pyiad-received-actions,
    .pyiad-box > p:first-child {
        display: none !important;
    }

    .pyiad-box {
        border: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}


.pyiad-danger {
    background: #9f2d20;
}

.pyiad-danger:hover,
.pyiad-danger:focus {
    background: #7f2419;
}
